forked from boostorg/container_hash
Add detail_is_range_test2.cpp
This commit is contained in:
@@ -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 ;
|
||||
|
||||
|
34
test/detail_is_range_test2.cpp
Normal file
34
test/detail_is_range_test2.cpp
Normal 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();
|
||||
}
|
Reference in New Issue
Block a user