Improve vacpp support.
[boost.git] / boost / libs / iterator / test / constant_iter_arrow_fail.cpp
blob05f551a93373802c5b8d24ad49bc654571ea093d
1 // Copyright David Abrahams 2004. Distributed under the Boost
2 // Software License, Version 1.0. (See accompanying
3 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
5 #include <boost/iterator/iterator_adaptor.hpp>
6 #include <utility>
8 struct my_iter : boost::iterator_adaptor<my_iter, std::pair<int,int> const*>
10 my_iter(std::pair<int,int> const*);
11 my_iter();
14 std::pair<int,int> const x(1,1);
15 my_iter p(&x);
17 void test()
19 p->first = 3;