fail_construct_mismatch.cpp 516 B

123456789101112131415161718192021
  1. // Boost.TypeErasure library
  2. //
  3. // Copyright 2012 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. #include <boost/type_erasure/any.hpp>
  11. #include <boost/type_erasure/builtin.hpp>
  12. #include <boost/mpl/map.hpp>
  13. using namespace boost::type_erasure;
  14. namespace mpl = boost::mpl;
  15. int main()
  16. {
  17. any<copy_constructible<> > x(1, make_binding<mpl::map<mpl::pair<_self, char> > >());
  18. }