Loops and inline functions

subbu picture subbu · Nov 2, 2012 · Viewed 9.4k times · Source

Why is it that a function with loops cannot be made inline? Is it due to a performance issue or is there any other reason?

Answer

Nawaz picture Nawaz · Nov 2, 2012

Functions containing loops may be inlined even if the loops cannot be unrolled. Whoever said otherwise is wrong.