]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/core/test/sv_common_reference_test2.cpp
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / boost / libs / core / test / sv_common_reference_test2.cpp
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
12 BOOST_PRAGMA_MESSAGE( "Skipping test because __cpp_lib_ranges is not defined" )
13
14 #else
15
16 struct Iterator
17 {
18 using value_type = std::string;
19 boost::core::string_view operator*() const noexcept;
20 };
21
22 static_assert( std::indirectly_readable<Iterator> );
23
24 #endif