mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Update Clang version check
This commit is contained in:
@ -56,4 +56,10 @@
|
|||||||
# define BOOST_SYSTEM_DEPRECATED(msg)
|
# define BOOST_SYSTEM_DEPRECATED(msg)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// BOOST_SYSTEM_CLANG_6
|
||||||
|
|
||||||
|
#if defined(__clang__) && (__clang_major__ < 7 || (defined(__APPLE__) && __clang_major__ < 11))
|
||||||
|
# define BOOST_SYSTEM_CLANG_6
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
|
#endif // BOOST_SYSTEM_DETAIL_CONFIG_HPP_INCLUDED
|
||||||
|
@ -402,7 +402,7 @@ public:
|
|||||||
return *reinterpret_cast<std::error_code*>( d2_ );
|
return *reinterpret_cast<std::error_code*>( d2_ );
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(__clang__) && __clang_major__ < 7
|
#if defined(BOOST_SYSTEM_CLANG_6)
|
||||||
|
|
||||||
template<class T,
|
template<class T,
|
||||||
class E = typename std::enable_if<std::is_same<T, std::error_code>::value>::type>
|
class E = typename std::enable_if<std::is_same<T, std::error_code>::value>::type>
|
||||||
|
@ -37,7 +37,7 @@ int main()
|
|||||||
boost::system::error_code e2( e1 );
|
boost::system::error_code e2( e1 );
|
||||||
|
|
||||||
f1( e1, e1.value(), e1.category() );
|
f1( e1, e1.value(), e1.category() );
|
||||||
#if !(defined(__clang__) && __clang_major__ < 7)
|
#if !defined(BOOST_SYSTEM_CLANG_6)
|
||||||
f2( e1, e1.value(), e1.category() );
|
f2( e1, e1.value(), e1.category() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -49,7 +49,7 @@ int main()
|
|||||||
boost::system::error_code e2( e1 );
|
boost::system::error_code e2( e1 );
|
||||||
|
|
||||||
f1( e1, e1.value(), e1.category() );
|
f1( e1, e1.value(), e1.category() );
|
||||||
#if !(defined(__clang__) && __clang_major__ < 7)
|
#if !defined(BOOST_SYSTEM_CLANG_6)
|
||||||
f2( e1, e1.value(), e1.category() );
|
f2( e1, e1.value(), e1.category() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -61,7 +61,7 @@ int main()
|
|||||||
boost::system::error_code e2( e1 );
|
boost::system::error_code e2( e1 );
|
||||||
|
|
||||||
f1( e1, e1.value(), e1.category() );
|
f1( e1, e1.value(), e1.category() );
|
||||||
#if !(defined(__clang__) && __clang_major__ < 7)
|
#if !defined(BOOST_SYSTEM_CLANG_6)
|
||||||
f2( e1, e1.value(), e1.category() );
|
f2( e1, e1.value(), e1.category() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -73,7 +73,7 @@ int main()
|
|||||||
boost::system::error_code e2( e1 );
|
boost::system::error_code e2( e1 );
|
||||||
|
|
||||||
f1( e1, e1.value(), e1.category() );
|
f1( e1, e1.value(), e1.category() );
|
||||||
#if !(defined(__clang__) && __clang_major__ < 7)
|
#if !defined(BOOST_SYSTEM_CLANG_6)
|
||||||
f2( e1, e1.value(), e1.category() );
|
f2( e1, e1.value(), e1.category() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -85,7 +85,7 @@ int main()
|
|||||||
boost::system::error_code e2( e1 );
|
boost::system::error_code e2( e1 );
|
||||||
|
|
||||||
f1( e1, e1.value(), e1.category() );
|
f1( e1, e1.value(), e1.category() );
|
||||||
#if !(defined(__clang__) && __clang_major__ < 7)
|
#if !defined(BOOST_SYSTEM_CLANG_6)
|
||||||
f2( e1, e1.value(), e1.category() );
|
f2( e1, e1.value(), e1.category() );
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user