Since your are defining your constructor in the class body, it is implicitly marked as "inline". Apparently the compiler doesn't like functions with loops inlined.

Now, there are two things you...