Maxpm Maxpm - 8 months ago 64
C++ Question

How do I check for C++11 support?

Is there a way to detect at compile-time if the compiler supports certain features of C++11? For example, something like this:


#error "Your compiler doesn't support variadic templates. :("


template <typename... DatatypeList>
class Tuple
// ...



Boost.Config has a plethora of macros that can be used to test for support for specific C++11 features.