Daily Shaarli

All links of one day in a single page.

November 1, 2015

Jean Guegant's Blog – An introduction to C++'s SFINAE concept: compile-time introspection of a class member

As you might be aware, C++ doesn't excel when it comes to examine the type or properties of an object at runtime. The best ability provided by default would be RTTI. Not only RTTI isn't always available, but it also gives you barely more than the current type of the manipulated object. Dynamic languages or those having reflection on the other hand are really convenient in some situations like serialization.