mirror of
https://github.com/boostorg/type_traits.git
synced 2025-07-31 13:07:22 +02:00
Apple X Code doesn't support noexcept as a separate type in partial specializations.
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user