I\'ve prepared a simple variadic template test in Code::Blocks, but I\'m getting an error:
No matching function for call to \'OutputSizes()\'
Here's how you disambiguate the base case:
#include #include template void OutputSizes() { std::cout << typeid(FirstDatatype).name() << ": " << sizeof(FirstDatatype) << std::endl; } template void OutputSizes() { OutputSizes() OutputSizes(); } int main() { OutputSizes(); }