Apple X Code doesn't support noexcept as a separate type in partial specializations.

This commit is contained in:
jzmaddock
2019-01-06 17:04:15 +00:00
parent 13d477be5d
commit 941e29e0a6
3 changed files with 3 additions and 2 deletions

View File

@ -91,6 +91,7 @@
#endif
#if defined(__APPLE_CC__) && defined(__clang_major__) && (__clang_major__ == 9) && (__clang_minor__ == 0)
# define BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM
# define BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE
#endif
#endif // BOOST_TT_CONFIG_HPP_INCLUDED

View File

@ -316,7 +316,7 @@ namespace boost {
// All over again for msvc with noexcept:
#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM)
#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM) && !defined(BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE)
#undef BOOST_TT_NOEXCEPT_DECL
#define BOOST_TT_NOEXCEPT_DECL noexcept

View File

@ -31,7 +31,7 @@ namespace boost {
template <class T>
struct is_member_function_pointer<T const volatile> : public is_member_function_pointer<T> {};
#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM)
#if defined(BOOST_TT_NO_DEDUCED_NOEXCEPT_PARAM) && !defined(BOOST_TT_NO_NOEXCEPT_SEPARATE_TYPE)
// MSVC can't handle noexcept(b) as a deduced template parameter
// so we will have to write everything out :(
#define BOOST_TT_NOEXCEPT_PARAM