1
0
forked from boostorg/bind

libstdc++ 4.8 and below don't have std::bit_not. Fixes #28.

This commit is contained in:
Peter Dimov
2022-02-12 20:48:46 +02:00
parent f50916d0e1
commit 57d26f5ab3

View File

@ -142,6 +142,12 @@ template<class T> struct result_traits< unspecified, std::bit_xor<T> >
typedef T type;
};
#if defined(BOOST_LIBSTDCXX_VERSION) && BOOST_LIBSTDCXX_VERSION < 40900
// libstdc++ 4.8 and below don't have std::bit_not
#else
template<class T> struct result_traits< unspecified, std::bit_not<T> >
{
typedef T type;
@ -149,6 +155,8 @@ template<class T> struct result_traits< unspecified, std::bit_not<T> >
#endif
#endif
} // namespace _bi
} // namespace boost