February 2012
1 post
7 tags
Substitution Failure Is Not An Error (It Is Also...
Last time, I wrote about SFINAE in relation to functions. This time, I’ll be
covering their use in structs, and all the neat little things this lets you
do.
I had promised to show off a neat trick involving platform specific code
within templates with extremely minimal use of the C preprocessor (simple
defines are used).
Unfortunately, I found out that accrding to the C++11 standard that...