mirror of
https://github.com/boostorg/core.git
synced 2025-05-10 07:13:54 +00:00
Avoid including <new> in core/launder.hpp when not C++17
This commit is contained in:
parent
2b3b97c633
commit
c4777c309e
@ -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 )
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user