Use static assert instead of mpl assert in the hash tests, as it's more

portable.


[SVN r28068]
This commit is contained in:
Daniel James
2005-04-09 09:30:27 +00:00
parent 640bdf7f9c
commit bc0f34d32d

View File

@@ -5,12 +5,12 @@
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#include <boost/config.hpp>
#include <boost/mpl/assert.hpp>
#include <boost/static_assert.hpp>
template <class T>
void compile_time_tests(T*)
{
BOOST_MPL_ASSERT((boost::is_base_and_derived<
std::unary_function<T, std::size_t>, HASH_NAMESPACE::hash<T> >));
BOOST_STATIC_ASSERT((boost::is_base_and_derived<
std::unary_function<T, std::size_t>, HASH_NAMESPACE::hash<T> >::value));
};