In file included from test.cpp:4: In file included from /usr/include/boost/multi_index/key_extractors.hpp:16: /usr/include/boost/multi_index/composite_key.hpp:624:23: error: indirection requires pointer operand ('const element' invalid) return operator()(*x); ^~ /usr/include/boost/multi_index/composite_key.hpp:624:12: note: in instantiation of function template specialization 'boost::multi_index::composite_key, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>::operator()' requested here return operator()(*x); ^ /usr/include/boost/multi_index/detail/ord_index_impl.hpp:712:20: note: in instantiation of function template specialization 'boost::multi_index::composite_key, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>::operator() > >' requested here if(!link_point(key(v),inf,Category())){ ^ /usr/include/boost/multi_index_container.hpp:558:27: note: in instantiation of function template specialization 'boost::multi_index::detail::ordered_index_impl, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::less, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, boost::multi_index::detail::nth_layer<1, std::unique_ptr >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >, boost::mpl::vector0, boost::multi_index::detail::ordered_unique_tag, boost::multi_index::detail::null_augment_policy>::insert_' requested here node_type* res=super::insert_(v,x,variant); ^ /usr/include/boost/multi_index_container.hpp:575:12: note: in instantiation of function template specialization 'boost::multi_index::multi_index_container >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::insert_' requested here return insert_(v,detail::rvalue_tag()); ^ /usr/include/boost/multi_index/detail/index_base.hpp:221:21: note: in instantiation of member function 'boost::multi_index::multi_index_container >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::insert_rv_' requested here {return final().insert_rv_(x);} ^ /usr/include/boost/multi_index/detail/ord_index_impl.hpp:302:46: note: in instantiation of member function 'boost::multi_index::detail::index_base >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::final_insert_rv_' requested here std::pair p=this->final_insert_rv_(x); ^ test.cpp:34:10: note: in instantiation of member function 'boost::multi_index::detail::ordered_index_impl, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::less, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, boost::multi_index::detail::nth_layer<1, std::unique_ptr >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >, boost::mpl::vector0, boost::multi_index::detail::ordered_unique_tag, boost::multi_index::detail::null_augment_policy>::insert' requested here a.ints.insert(std::make_unique(5, 4.0)); ^ In file included from test.cpp:4: In file included from /usr/include/boost/multi_index/key_extractors.hpp:19: /usr/include/boost/multi_index/member.hpp:60:23: error: indirection requires pointer operand ('const boost::multi_index::member' invalid) return operator()(*x); ^~ /usr/include/boost/multi_index/composite_key.hpp:377:24: note: in instantiation of function template specialization 'boost::multi_index::detail::const_member_base::operator() >' requested here if(comp.get_head()(c0.get_head()(v0),c1.get_head()(v1)))return true; ^ /usr/include/boost/multi_index/composite_key.hpp:1135:8: note: in instantiation of member function 'boost::multi_index::detail::compare_ckey_ckey_normal, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, boost::multi_index::member, boost::tuples::tuple, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, boost::multi_index::member, boost::tuples::tuple, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >::compare' requested here >::compare( ^ /usr/include/boost/multi_index/detail/ord_index_impl.hpp:1014:9: note: in instantiation of function template specialization 'boost::multi_index::composite_key_compare, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>::operator(), boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, boost::multi_index::composite_key, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> >' requested here c=comp_(k,key(x->value())); ^ /usr/include/boost/multi_index/detail/ord_index_impl.hpp:712:9: note: in instantiation of member function 'boost::multi_index::detail::ordered_index_impl, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::less, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, boost::multi_index::detail::nth_layer<1, std::unique_ptr >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >, boost::mpl::vector0, boost::multi_index::detail::ordered_unique_tag, boost::multi_index::detail::null_augment_policy>::link_point' requested here if(!link_point(key(v),inf,Category())){ ^ /usr/include/boost/multi_index_container.hpp:558:27: note: in instantiation of function template specialization 'boost::multi_index::detail::ordered_index_impl, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::less, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, boost::multi_index::detail::nth_layer<1, std::unique_ptr >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >, boost::mpl::vector0, boost::multi_index::detail::ordered_unique_tag, boost::multi_index::detail::null_augment_policy>::insert_' requested here node_type* res=super::insert_(v,x,variant); ^ /usr/include/boost/multi_index_container.hpp:575:12: note: in instantiation of function template specialization 'boost::multi_index::multi_index_container >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::insert_' requested here return insert_(v,detail::rvalue_tag()); ^ /usr/include/boost/multi_index/detail/index_base.hpp:221:21: note: in instantiation of member function 'boost::multi_index::multi_index_container >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::insert_rv_' requested here {return final().insert_rv_(x);} ^ /usr/include/boost/multi_index/detail/ord_index_impl.hpp:302:46: note: in instantiation of member function 'boost::multi_index::detail::index_base >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >::final_insert_rv_' requested here std::pair p=this->final_insert_rv_(x); ^ test.cpp:34:10: note: in instantiation of member function 'boost::multi_index::detail::ordered_index_impl, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, std::less, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type> > >, boost::multi_index::detail::nth_layer<1, std::unique_ptr >, boost::multi_index::indexed_by, boost::multi_index::member, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type, boost::tuples::null_type>, mpl_::na, mpl_::na>, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na, mpl_::na>, std::allocator > > >, boost::mpl::vector0, boost::multi_index::detail::ordered_unique_tag, boost::multi_index::detail::null_augment_policy>::insert' requested here a.ints.insert(std::make_unique(5, 4.0)); ^ 2 errors generated.