1// Copyright 2021 Peter Dimov
2// Distributed under the Boost Software License, Version 1.0.
3// https://www.boost.org/LICENSE_1_0.txt
4
5#include <boost/core/detail/string_view.hpp>
6#include <boost/config/pragma_message.hpp>
7#include <string>
8#include <iterator>
9
10#if !defined(__cpp_lib_ranges)
11
12BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_lib_ranges is not defined" )
13
14#else
15
16struct Iterator
17{
18 using value_type = std::string;
19 boost::core::string_view operator*() const noexcept;
20};
21
22static_assert( std::indirectly_readable<Iterator> );
23
24#endif
25

source code of boost/libs/core/test/sv_common_reference_test2.cpp