Complex sentence: Templates avoid some of the common errors found in code that makes heavy use of function-like macros, such as evaluating parameters with side effects twice.
Split into simpler sentences: Templates avoid some of the common errors found in code that makes heavy use of function-like macros. Such as evaluating parameters with side effects twice.