Add is_contiguous_range_test3 (refs #28)

This commit is contained in:
Peter Dimov
2022-10-26 19:13:27 +03:00
parent 85f9f8a97a
commit a4b2048a29
2 changed files with 26 additions and 0 deletions

View File

@@ -101,3 +101,4 @@ run hash_unordered_map_test.cpp ;
run is_range_test3.cpp ; run is_range_test3.cpp ;
run is_contiguous_range_test2.cpp ; run is_contiguous_range_test2.cpp ;
run is_unordered_range_test2.cpp ; run is_unordered_range_test2.cpp ;
run is_contiguous_range_test3.cpp ;

View File

@@ -0,0 +1,25 @@
// Copyright 2022 Peter Dimov.
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#include <boost/container_hash/is_contiguous_range.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <cstddef>
struct X1
{
char const* begin() const;
char const* end() const;
std::size_t size() const;
char data[16];
};
int main()
{
using boost::container_hash::is_contiguous_range;
BOOST_TEST_TRAIT_FALSE((is_contiguous_range<X1>));
return boost::report_errors();
}