Maxpm Maxpm - 1 year ago 103
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
// ...


Answer Source

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download