I recommend you buy the book "C++ Template Metapogramming" by Abrahams and Gurtovoy, it's pretty much the best resource on the topic. Or if you want a somewhat gentler introduction, "Modern C++...
Type: Posts; User: CornedBee
I recommend you buy the book "C++ Template Metapogramming" by Abrahams and Gurtovoy, it's pretty much the best resource on the topic. Or if you want a somewhat gentler introduction, "Modern C++...
Yep, this is a compile-time meta-programming challenge. You're basically going about it with too naive an approach.