merged from trunk

[SVN r21516]
This commit is contained in:
Dave Abrahams
2004-01-06 17:36:30 +00:00
parent f5d1feb76e
commit cf068fba24
7 changed files with 92 additions and 163 deletions
+5
View File
@@ -7,6 +7,7 @@
# define STATIC_ASSERT_SAME_DWA2003530_HPP
# include <boost/type.hpp>
# include <boost/static_assert.hpp>
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
template <class T, class U>
@@ -32,4 +33,8 @@ struct static_assert_same
{};
#endif
#define STATIC_ASSERT_SAME( T1,T2 ) \
enum { BOOST_JOIN(boost_static_assert_enum_, __LINE__) \
= static_assert_same<T1,T2>::value }
#endif // STATIC_ASSERT_SAME_DWA2003530_HPP