| 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 |
| 25 |
