(no title)
adsofhoads | 9 years ago
void print1(auto x){std::cout<< x;}
is a function template template <class T>
void print1(T x){std::cout<< x;}
This is not valid C++14 however, so it doesn't compile. If you replace these, you'll probably still get a stack overflow while expanding the templates because there are almost 7000 arguments to a single function call.
FrozenVoid|9 years ago
It is "valid C++" IF there are fewer arguments, like 6-10
The example illustrates C++ internal representation of "variadic functions".
adsofhoads|9 years ago
KayEss|9 years ago