2004-07-26 00:32:12 +00:00
|
|
|
// Copyright David Abrahams 2003.
|
|
|
|
// 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)
|
2003-07-07 14:26:16 +00:00
|
|
|
#ifndef STATIC_ASSERT_SAME_DWA2003530_HPP
|
|
|
|
# define STATIC_ASSERT_SAME_DWA2003530_HPP
|
|
|
|
|
2005-06-24 15:37:23 +00:00
|
|
|
#include <boost/mpl/assert.hpp>
|
|
|
|
# include <boost/type_traits/is_same.hpp>
|
2003-07-07 14:26:16 +00:00
|
|
|
|
2005-06-24 15:37:23 +00:00
|
|
|
#define STATIC_ASSERT_SAME( T1,T2 ) BOOST_MPL_ASSERT((::boost::is_same< T1, T2 >))
|
2003-07-07 14:26:16 +00:00
|
|
|
|
2005-06-24 15:37:23 +00:00
|
|
|
template <class T1, class T2>
|
|
|
|
struct static_assert_same
|
2003-07-07 14:26:16 +00:00
|
|
|
{
|
2005-06-24 15:37:23 +00:00
|
|
|
BOOST_MPL_ASSERT((::boost::is_same< T1, T2 >));
|
2003-07-07 14:26:16 +00:00
|
|
|
enum { value = 1 };
|
|
|
|
};
|
2003-11-22 01:18:37 +00:00
|
|
|
|
2003-07-07 14:26:16 +00:00
|
|
|
#endif // STATIC_ASSERT_SAME_DWA2003530_HPP
|