jhaigh@growler:~/tmp/tmp$ g++ -std=c++11 bimap_error.cpp In file included from /usr/include/boost/bimap/bimap.hpp:61:0, from /usr/include/boost/bimap.hpp:13, from bimap_error.cpp:1: /usr/include/boost/bimap/detail/bimap_core.hpp: In instantiation of ‘class boost::bimaps::detail::bimap_core, std::allocator >’: /usr/include/boost/bimap/bimap.hpp:133:7: required from ‘class boost::bimaps::bimap, std::allocator >’ bimap_error.cpp:5:106: required from here /usr/include/boost/bimap/detail/bimap_core.hpp:410:7: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters, std::allocator >::case_SHA::allocator {aka struct boost::bimaps::with_info}’ > core_type; ^ /usr/include/boost/bimap/detail/bimap_core.hpp:417:49: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters, std::allocator >::case_SHA::allocator {aka struct boost::bimaps::with_info}’ index::type left_index; ^ /usr/include/boost/bimap/detail/bimap_core.hpp:420:48: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters, std::allocator >::case_SHA::allocator {aka struct boost::bimaps::with_info}’ index::type right_index; ^ /usr/include/boost/bimap/detail/bimap_core.hpp:434:13: error: no class template named ‘rebind’ in ‘boost::bimaps::detail::manage_additional_parameters, std::allocator >::case_SHA::allocator {aka struct boost::bimaps::with_info}’ >::type relation_set_core_index; ^ In file included from /usr/include/boost/mpl/aux_/integral_wrapper.hpp:22:0, from /usr/include/boost/mpl/integral_c.hpp:32, from /usr/include/boost/serialization/nvp.hpp:28, from /usr/include/boost/bimap/bimap.hpp:57, from /usr/include/boost/bimap.hpp:13, from bimap_error.cpp:1: /usr/include/boost/bimap/views/map_view.hpp: In instantiation of ‘struct boost::bimaps::detail::left_map_view_extra_typedefs, std::allocator > > >’: /usr/include/boost/bimap/bimap.hpp:133:7: required from ‘class boost::bimaps::bimap, std::allocator >’ bimap_error.cpp:5:106: required from here /usr/include/boost/bimap/views/map_view.hpp:135:14: error: no type named ‘reverse_iterator’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left) ^ /usr/include/boost/bimap/views/map_view.hpp:135:14: error: no type named ‘const_reverse_iterator’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left) ^ /usr/include/boost/bimap/views/map_view.hpp:135:14: error: no type named ‘key_compare’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,left) ^ /usr/include/boost/bimap/views/map_view.hpp: In instantiation of ‘struct boost::bimaps::detail::right_map_view_extra_typedefs, std::allocator > > >’: /usr/include/boost/bimap/bimap.hpp:133:7: required from ‘class boost::bimaps::bimap, std::allocator >’ bimap_error.cpp:5:106: required from here /usr/include/boost/bimap/views/map_view.hpp:142:14: error: no type named ‘reverse_iterator’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,right) ^ /usr/include/boost/bimap/views/map_view.hpp:142:14: error: no type named ‘const_reverse_iterator’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,right) ^ /usr/include/boost/bimap/views/map_view.hpp:142:14: error: no type named ‘key_compare’ in ‘class boost::bimaps::views::map_view, std::allocator > >’ public : BOOST_BIMAP_MAP_VIEW_EXTRA_TYPEDEFS_BODY(map_view_,right) ^ In file included from /usr/include/boost/bimap.hpp:13:0, from bimap_error.cpp:1: /usr/include/boost/bimap/bimap.hpp: In instantiation of ‘class boost::bimaps::bimap, std::allocator >’: bimap_error.cpp:5:106: required from here /usr/include/boost/bimap/bimap.hpp:187:36: error: no type named ‘iterator’ in ‘boost::bimaps::bimap, std::allocator >::left_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ left_map::iterator left_iterator; ^ /usr/include/boost/bimap/bimap.hpp:189:36: error: no type named ‘const_iterator’ in ‘boost::bimaps::bimap, std::allocator >::left_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ left_map::const_iterator left_const_iterator; ^ /usr/include/boost/bimap/bimap.hpp:192:36: error: no type named ‘iterator’ in ‘boost::bimaps::bimap, std::allocator >::right_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ right_map::iterator right_iterator; ^ /usr/include/boost/bimap/bimap.hpp:194:36: error: no type named ‘const_iterator’ in ‘boost::bimaps::bimap, std::allocator >::right_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ right_map::const_iterator right_const_iterator; ^ /usr/include/boost/bimap/bimap.hpp:197:36: error: no type named ‘reference’ in ‘boost::bimaps::bimap, std::allocator >::left_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ left_map::reference left_reference; ^ /usr/include/boost/bimap/bimap.hpp:199:36: error: no type named ‘const_reference’ in ‘boost::bimaps::bimap, std::allocator >::left_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ left_map::const_reference left_const_reference; ^ /usr/include/boost/bimap/bimap.hpp:202:36: error: no type named ‘reference’ in ‘boost::bimaps::bimap, std::allocator >::right_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ right_map::reference right_reference; ^ /usr/include/boost/bimap/bimap.hpp:204:36: error: no type named ‘const_reference’ in ‘boost::bimaps::bimap, std::allocator >::right_map {aka class boost::bimaps::views::map_view, std::allocator > >}’ right_map::const_reference right_const_reference; ^ bimap_error.cpp: In function ‘void test()’: bimap_error.cpp:5:106: error: no matching function for call to ‘boost::bimaps::bimap, std::allocator >::bimap()’ boost::bimap, std::allocator> map; ^ bimap_error.cpp:5:106: note: candidate is: In file included from /usr/include/boost/bimap.hpp:13:0, from bimap_error.cpp:1: /usr/include/boost/bimap/bimap.hpp:268:4: note: boost::bimaps::bimap::bimap(const boost::bimaps::bimap&) [with KeyTypeA = int; KeyTypeB = int; AP1 = boost::bimaps::left_based; AP2 = boost::bimaps::with_info; AP3 = std::allocator] bimap(const bimap& x) : ^ /usr/include/boost/bimap/bimap.hpp:268:4: note: candidate expects 1 argument, 0 provided jhaigh@growler:~/tmp/tmp$ jhaigh@growler:~/tmp/tmp$ g++ --version g++ (Debian 4.9.2-10) 4.9.2 Copyright (C) 2014 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. jhaigh@growler:~/tmp/tmp$