Add detail_is_range_test2.cpp

This commit is contained in:
Peter Dimov
2022-06-03 20:01:26 +03:00
parent 866bd60dd3
commit e0e86a1413
2 changed files with 35 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ build-project ../examples ;
run hash_reference_values.cpp ;
run detail_is_range_test.cpp ;
run detail_is_range_test2.cpp ;
run detail_is_contiguous_range_test.cpp ;
run detail_is_unordered_range_test.cpp ;

View File

@@ -0,0 +1,34 @@
// Copyright 2022 Peter Dimov
// Distributed under the Boost Software License, Version 1.0.
// https://www.boost.org/LICENSE_1_0.txt
#if defined(_MSC_VER)
# pragma warning(disable: 4714) // forceinline not inlined
#endif
#if defined(__clang__)
# pragma clang diagnostic ignored "-Wsign-conversion"
#endif
#include <boost/container_hash/detail/is_range.hpp>
#include <boost/core/lightweight_test_trait.hpp>
#include <boost/config.hpp>
#include <boost/filesystem/path.hpp>
#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM)
# include <filesystem>
#endif
int main()
{
using boost::hash_detail::is_range;
BOOST_TEST_TRAIT_FALSE((is_range< boost::filesystem::path >));
BOOST_TEST_TRAIT_FALSE((is_range< boost::filesystem::path const >));
#if !defined(BOOST_NO_CXX17_HDR_FILESYSTEM)
BOOST_TEST_TRAIT_FALSE((is_range< std::filesystem::path >));
BOOST_TEST_TRAIT_FALSE((is_range< std::filesystem::path const >));
#endif
return boost::report_errors();
}