mirror of
https://github.com/boostorg/core.git
synced 2025-07-30 21:07:22 +02:00
Avoid including <new> in core/launder.hpp when not C++17
This commit is contained in:
@ -17,7 +17,7 @@
|
|||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_CORE_HAS_BUILTIN_LAUNDER)
|
#if (__cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)) && !defined(BOOST_CORE_HAS_BUILTIN_LAUNDER)
|
||||||
# include <new>
|
# include <new>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ template<class T> T* launder( T* p )
|
|||||||
return __builtin_launder( p );
|
return __builtin_launder( p );
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(__cpp_lib_launder)
|
#elif (__cplusplus >= 201703L || (defined(_MSVC_LANG) && _MSVC_LANG >= 201703L)) && defined(__cpp_lib_launder)
|
||||||
|
|
||||||
template<class T> T* launder( T* p )
|
template<class T> T* launder( T* p )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user