#include #include using namespace std; template inline void print() { enum {done = STEP >= 0 ? FIRST + STEP > LAST : FIRST + STEP < LAST}; cout << FIRST << "\n"; print(); } template <> inline void print<0, 0, 0>() {} int main() { print<10, 2, -3>(); return EXIT_SUCCESS; }