diff options
Diffstat (limited to 'libcxx/include/__memory/ranges_construct_at.h')
| -rw-r--r-- | libcxx/include/__memory/ranges_construct_at.h | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/libcxx/include/__memory/ranges_construct_at.h b/libcxx/include/__memory/ranges_construct_at.h index 29258023e3f9..e63585d1ab63 100644 --- a/libcxx/include/__memory/ranges_construct_at.h +++ b/libcxx/include/__memory/ranges_construct_at.h @@ -22,6 +22,7 @@  #include <__utility/declval.h>  #include <__utility/forward.h>  #include <__utility/move.h> +#include <new>  #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)  #  pragma GCC system_header @@ -29,7 +30,7 @@  _LIBCPP_BEGIN_NAMESPACE_STD -#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#if _LIBCPP_STD_VER > 17  namespace ranges {  // construct_at @@ -38,7 +39,7 @@ namespace __construct_at {  struct __fn {    template<class _Tp, class... _Args, class = decltype( -    ::new (declval<void*>()) _Tp(declval<_Args>()...) +    ::new (std::declval<void*>()) _Tp(std::declval<_Args>()...)    )>    _LIBCPP_HIDE_FROM_ABI    constexpr _Tp* operator()(_Tp* __location, _Args&& ...__args) const { @@ -117,7 +118,7 @@ inline namespace __cpo {  } // namespace ranges -#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#endif // _LIBCPP_STD_VER > 17  _LIBCPP_END_NAMESPACE_STD | 
