1// Boost.TypeErasure library
2//
3// Copyright 2011 Steven Watanabe
4//
5// Distributed under the Boost Software License Version 1.0. (See
6// accompanying file LICENSE_1_0.txt or copy at
7// http://www.boost.org/LICENSE_1_0.txt)
8//
9// $Id$
10
11#include <boost/type_erasure/any.hpp>
12#include <boost/type_erasure/operators.hpp>
13
14using namespace boost::type_erasure;
15
16int main()
17{
18 const int i = 0;
19 any<incrementable<>, const _self&> x(i);
20 ++x;
21}
22

source code of boost/libs/type_erasure/test/fail_increment_discard_const.cpp