diff options
author | Jeffrey Walton <noloader@gmail.com> | 2019-07-11 12:10:19 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2019-07-11 12:10:19 -0400 |
commit | f0d79177194ff0b9cfcdc1863b56eb1ab1a4ae8b (patch) | |
tree | 438cef881ad745380da49eca4cb3789c7f213b32 /config_cxx.h | |
parent | 8260dd1e81c3da7fa6126bf7bba2ed31bfa12779 (diff) | |
download | cryptopp-git-f0d79177194ff0b9cfcdc1863b56eb1ab1a4ae8b.tar.gz |
Move CRYPTOPP_NO_CXX11 and CRYPTOPP_NO_CXX17 to config_cxx.h
It looks like these two were overlooked during refactoring
Diffstat (limited to 'config_cxx.h')
-rw-r--r-- | config_cxx.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/config_cxx.h b/config_cxx.h index 541a1080..b5255ec1 100644 --- a/config_cxx.h +++ b/config_cxx.h @@ -42,6 +42,20 @@ # endif
#endif
+// Define CRYPTOPP_NO_CXX11 to avoid C++11 related features shown at the
+// end of this file. Some compilers and standard C++ headers advertise C++11
+// but they are really just C++03 with some additional C++11 headers and
+// non-conforming classes. You might also consider `-std=c++03` or
+// `-std=gnu++03`, but they are required options when building the library
+// and all programs. CRYPTOPP_NO_CXX11 is probably easier to manage but it may
+// cause -Wterminate warnings under GCC. MSVC++ has a similar warning.
+// Also see https://github.com/weidai11/cryptopp/issues/529
+// #define CRYPTOPP_NO_CXX11 1
+
+// Define CRYPTOPP_NO_CXX17 to avoid C++17 related features shown at the end of
+// this file. At the moment it should only affect std::uncaught_exceptions.
+// #define CRYPTOPP_NO_CXX17 1
+
// Hack ahead. Apple's standard library does not have C++'s unique_ptr in C++11.
// We can't test for unique_ptr directly because some of the non-Apple Clangs
// on OS X fail the same way. However, modern standard libraries have
|