mirror of
https://github.com/boostorg/iterator.git
synced 2025-07-30 04:47:20 +02:00
Better error messages on failure
[SVN r20894]
This commit is contained in:
@ -10,13 +10,17 @@
|
|||||||
|
|
||||||
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
#ifndef BOOST_NO_TEMPLATE_PARTIAL_SPECIALIZATION
|
||||||
template <class T, class U>
|
template <class T, class U>
|
||||||
struct static_assert_same;
|
struct static_assert_same_base;
|
||||||
|
|
||||||
template <class T>
|
template <class T>
|
||||||
struct static_assert_same<T,T>
|
struct static_assert_same_base<T,T>
|
||||||
{
|
{
|
||||||
enum { value = 1 };
|
enum { value = 1 };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class T, class U>
|
||||||
|
struct static_assert_same : static_assert_same_base<T,U> {};
|
||||||
|
|
||||||
#else
|
#else
|
||||||
# include <boost/mpl/if.hpp>
|
# include <boost/mpl/if.hpp>
|
||||||
# include <boost/mpl/bool.hpp>
|
# include <boost/mpl/bool.hpp>
|
||||||
|
Reference in New Issue
Block a user