Fix broken <atomic> with clang, tentatively fix clang number separator option.

This commit is contained in:
jzmaddock
2014-10-12 13:20:11 +01:00
parent 5e78d55d0e
commit f9bfac1297
2 changed files with 7 additions and 1 deletions

View File

@ -237,7 +237,7 @@
# define BOOST_NO_CXX14_VARIABLE_TEMPLATES
#endif
#if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 4)
#if ((__clang_major__ < 3) || (__clang_major__ == 3 && __clang_minor__ < 4)) || (__cplusplus < 201400)
# define BOOST_NO_CXX14_DIGIT_SEPARATOR
#endif

View File

@ -209,6 +209,12 @@
// even for the simplest patterns such as "\d" or "[0-9]". This is the case at least in gcc up to 4.8, inclusively.
# define BOOST_NO_CXX11_HDR_REGEX
#endif
#if defined(__clang_major__) && ((__clang_major__ < 3) || ((__clang_major__ == 3) && (__clang_minor__ < 7)))
// As of clang-3.6, libstdc++ header <atomic> throws up errors with clang:
# define BOOST_NO_CXX11_HDR_ATOMIC
#endif
// C++0x headers not yet (fully!) implemented
//
# define BOOST_NO_CXX11_HDR_TYPE_TRAITS