| 1 | // Copyright 2022 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/container_hash/is_contiguous_range.hpp> |
| 6 | #include <boost/core/lightweight_test_trait.hpp> |
| 7 | #include <cstddef> |
| 8 | |
| 9 | struct X1 |
| 10 | { |
| 11 | char const* begin() const; |
| 12 | char const* end() const; |
| 13 | std::size_t size() const; |
| 14 | |
| 15 | char data[16]; |
| 16 | }; |
| 17 | |
| 18 | int main() |
| 19 | { |
| 20 | using boost::container_hash::is_contiguous_range; |
| 21 | |
| 22 | BOOST_TEST_TRAIT_FALSE((is_contiguous_range<X1>)); |
| 23 | |
| 24 | return boost::report_errors(); |
| 25 | } |
| 26 |
