We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2207348 commit e154d95Copy full SHA for e154d95
websocketpp/common/cpp11.hpp
@@ -41,9 +41,11 @@
41
#endif
42
43
44
-#ifdef _WEBSOCKETPP_CPP11_STL_
45
- // This flag indicates that all of the C++11 language features are available
46
- // to us.
+#if defined(_WEBSOCKETPP_CPP11_STL_) || __cplusplus >= 201103L
+ // _WEBSOCKETPP_CPP11_STL_ is a flag from the build system that forces
+ // WebSocket++ into C++11 mode. __cplusplus is a define set by the compiler
47
+ // if it has full support for C++11 language features. If either are set use
48
+ // C++11 language features
49
#ifndef _WEBSOCKETPP_NOEXCEPT_TOKEN_
50
#define _WEBSOCKETPP_NOEXCEPT_TOKEN_ noexcept
51
0 commit comments