mirror of
https://github.com/boostorg/utility.git
synced 2025-05-08 18:34:02 +00:00
added more static asserts
[SVN r9500]
This commit is contained in:
parent
f353415136
commit
f8543d79eb
@ -29,9 +29,13 @@ main()
|
||||
boost::iterator_traits_generator
|
||||
::reference<dummyT>
|
||||
::iterator_category<std::input_iterator_tag> > iter_type;
|
||||
|
||||
BOOST_STATIC_ASSERT((boost::is_same<iter_type::reference, dummyT>::value));
|
||||
|
||||
|
||||
BOOST_STATIC_ASSERT((boost::is_same<iter_type::iterator_category*,
|
||||
std::input_iterator_tag*>::value));
|
||||
|
||||
BOOST_STATIC_ASSERT(( ! boost::is_convertible<iter_type::iterator_category*,
|
||||
std::forward_iterator_tag*>::value));
|
||||
|
||||
iter_type i(mi);
|
||||
boost::input_iterator_test(i, dummyT(0), dummyT(1));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user