Files
multi_array/test/fail_criterator.cpp
Ronald Garcia 685b7e4c37 Initial submission to Boost.
[SVN r13915]
2002-05-15 16:08:54 +00:00

23 lines
514 B
C++

//
// fail_criterator.cpp
// const_reverse_iterator/reverse_iterator conversion test
//
#include "boost/multi_array.hpp"
#define BOOST_INCLUDE_MAIN
#include "boost/test/test_tools.hpp"
int test_main(int,char**) {
typedef boost::multi_array<int,3> array;
typedef array::reverse_iterator riterator1;
typedef array::const_reverse_iterator criterator1;
// ILLEGAL conversion from const_reverse_iterator to reverse_iterator
riterator1 in = criterator1();
return boost::exit_success;
}