> You wouldn't pass, because you didn't read the specs!
> "prints the numbers from 1 to 100." -- you printed 0-100! ;-)
This is specifically addressed in the "Exit Portability" section:
"1. It starts at 0 instead of 1. This is just to make the output more readable by having the number encoded in the template argument (T0, T1, T2, etc) map directly to its FizzBuzz representation. If you want a strict version of FizzBuzz, just change the template specialization to terminate on '1' and return a vector<int_<1> > instead."
Comments
> You wouldn't pass, because you didn't read the specs!
> "prints the numbers from 1 to 100." -- you printed 0-100! ;-)
This is specifically addressed in the "Exit Portability" section:
"1. It starts at 0 instead of 1. This is just to make the output more readable by having the number encoded in the template argument (T0, T1, T2, etc) map directly to its FizzBuzz representation. If you want a strict version of FizzBuzz, just change the template specialization to terminate on '1' and return a vector<int_<1> > instead."