fail_binding_convert_no_mapping.cpp 748 B

12345678910111213141516171819202122232425
  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. #include <boost/type_erasure/binding.hpp>
  11. #include <boost/type_erasure/builtin.hpp>
  12. #include <boost/type_erasure/static_binding.hpp>
  13. #include <boost/mpl/map.hpp>
  14. #include <boost/mpl/vector.hpp>
  15. #include <boost/mpl/pair.hpp>
  16. using namespace boost::type_erasure;
  17. int main()
  18. {
  19. binding< boost::mpl::vector<typeid_<_a>, typeid_<_b> > > b1(
  20. make_binding<boost::mpl::map<boost::mpl::pair<_a, int>, boost::mpl::pair<_b, int> > >());
  21. binding< typeid_<_a> > b2(b1, make_binding<boost::mpl::map<> >());
  22. }