c++ - How do I check for C++11 support? -


is there way detect @ compile-time if compiler supports features of c++11? example, this:

#ifndef variadic_templates_supported  #error "your compiler doesn't support variadic templates.  :("  #else  template <typename... datatypelist> class tuple {     // ... }  #endif 

boost.config has a plethora of macros can used test support specific c++11 features.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -