diff options
Diffstat (limited to 'libcxx/include/__ranges/ref_view.h')
| -rw-r--r-- | libcxx/include/__ranges/ref_view.h | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/libcxx/include/__ranges/ref_view.h b/libcxx/include/__ranges/ref_view.h index e69c715fb9e4..1e5f7466f321 100644 --- a/libcxx/include/__ranges/ref_view.h +++ b/libcxx/include/__ranges/ref_view.h @@ -6,9 +6,12 @@  // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception  //  //===----------------------------------------------------------------------===// +  #ifndef _LIBCPP___RANGES_REF_VIEW_H  #define _LIBCPP___RANGES_REF_VIEW_H +#include <__concepts/convertible_to.h> +#include <__concepts/different_from.h>  #include <__config>  #include <__iterator/concepts.h>  #include <__iterator/incrementable_traits.h> @@ -22,7 +25,6 @@  #include <__ranges/size.h>  #include <__ranges/view_interface.h>  #include <__utility/forward.h> -#include <concepts>  #include <type_traits>  #if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER) @@ -31,7 +33,7 @@  _LIBCPP_BEGIN_NAMESPACE_STD -#if _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#if _LIBCPP_STD_VER > 17  namespace ranges {    template<range _Range> @@ -45,7 +47,7 @@ namespace ranges {  public:      template<class _Tp>        requires __different_from<_Tp, ref_view> && -        convertible_to<_Tp, _Range&> && requires { __fun(declval<_Tp>()); } +        convertible_to<_Tp, _Range&> && requires { __fun(std::declval<_Tp>()); }      _LIBCPP_HIDE_FROM_ABI      constexpr ref_view(_Tp&& __t)        : __range_(std::addressof(static_cast<_Range&>(std::forward<_Tp>(__t)))) @@ -79,7 +81,7 @@ public:    inline constexpr bool enable_borrowed_range<ref_view<_Tp>> = true;  } // namespace ranges -#endif // _LIBCPP_STD_VER > 17 && !defined(_LIBCPP_HAS_NO_INCOMPLETE_RANGES) +#endif // _LIBCPP_STD_VER > 17  _LIBCPP_END_NAMESPACE_STD | 
