Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/range/v3/range/concepts.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
#if __has_include(<span>) && !defined(RANGES_WORKAROUND_MSVC_UNUSABLE_SPAN)
#include <span>
#endif
#if __has_include(<cuda/std/span>)
#include <cuda/std/span>
#endif
#if __has_include(<string_view>)
#include <string_view>
#endif
Expand Down Expand Up @@ -240,6 +243,11 @@ namespace ranges
template<typename T, std::size_t N>
RANGES_INLINE_VAR constexpr bool enable_view<std::span<T, N>> = true;
#endif
#if defined(__cccl_lib_span) && __cccl_lib_span >= 202002L && \
(!defined(__GLIBCXX__) || defined(__cccl_lib_concepts))
template<typename T, std::size_t N>
RANGES_INLINE_VAR constexpr bool enable_view<cuda::std::span<T, N>> = true;
#endif

//
// View concepts below
Expand Down
2 changes: 1 addition & 1 deletion include/range/v3/utility/semiregular_box.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ namespace ranges
: ranges::reference_wrapper<T &>(arg)
{}
using ranges::reference_wrapper<T &>::get;
using ranges::reference_wrapper<T &>::operator T &;
using ranges::reference_wrapper<T &>::operator std::add_lvalue_reference<T>;
using ranges::reference_wrapper<T &>::operator();

#if defined(_MSC_VER)
Expand Down