Files
boost_functional/hash/test/compile_time.hpp
T

16 lines
506 B
C++
Raw Normal View History

2005-04-01 16:58:09 +00:00
2009-03-11 22:51:09 +00:00
// Copyright 2005-2009 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
2005-04-01 16:58:09 +00:00
#include <boost/config.hpp>
#include <boost/static_assert.hpp>
#include <boost/type_traits/is_base_and_derived.hpp>
2005-04-01 16:58:09 +00:00
template <class T>
void compile_time_tests(T*)
2005-04-01 16:58:09 +00:00
{
BOOST_STATIC_ASSERT((boost::is_base_and_derived<
2012-12-20 20:38:09 +00:00
std::unary_function<T, std::size_t>, BOOST_HASH_TEST_NAMESPACE::hash<T> >::value));
}
2005-04-01 16:58:09 +00:00