forked from boostorg/iterator
Added traits:
is_incrementable.hpp: checks whether ++x is well-formed pointee.hpp: value_type of iterators or smart pointers indirect_reference.hpp: reference type of iterators or smart pointers indirect_iterator.hpp indirect_iterator_member_types.cpp Use pointee/indirect_reference to select value/reference type. iterator_concepts.hpp: Fixed interoperable test. Hardly tests enough, but it's a start minimum_category.hpp: Better error messages for vc6 indirect_iterator_test.cpp: Workarounds for compilers without SFINAE static_assert_same.hpp: Informative error reports; added a macro. zip_iterator_test.hpp: Added missing #include Jamfile: made zip_iterator test pass with vc6/stlport [SVN r21514]
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user