mirror of
https://github.com/boostorg/utility.git
synced 2025-05-09 02:44:10 +00:00
added more static asserts
[SVN r9500]
This commit is contained in:
parent
f353415136
commit
f8543d79eb
@ -30,7 +30,11 @@ main()
|
|||||||
::reference<dummyT>
|
::reference<dummyT>
|
||||||
::iterator_category<std::input_iterator_tag> > iter_type;
|
::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);
|
iter_type i(mi);
|
||||||
boost::input_iterator_test(i, dummyT(0), dummyT(1));
|
boost::input_iterator_test(i, dummyT(0), dummyT(1));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user