mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-10 07:33:53 +00:00
12 lines
316 B
C++
12 lines
316 B
C++
#include <boost/iterator/reverse_iterator.hpp>
|
|
#include <boost/cstdlib.hpp>
|
|
|
|
int main()
|
|
{
|
|
typedef boost::reverse_iterator<int*> rev_iter1;
|
|
typedef boost::reverse_iterator<char*> rev_iter2;
|
|
|
|
return boost::is_convertible<rev_iter1, rev_iter2>::value
|
|
? boost::exit_failure : boost::exit_success;
|
|
}
|