id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 12432,Forced KeyOfValue creation when using custom compare on insert_check,kiril.dimitroff@…,Ion Gaztañaga,"Introducing key_of_value in 1.59 seems to have broken the custom compare feature (including subsequent versions): {{{ int first; explicit MyClass(int i) : first(i){} }}} ''Compr'' defines strict ordering between MyClass and int. {{{ typedef set< MyClass, compare > OrderedMap; ... int i = 1; auto ret = omap.insert_check(i, omap.value_comp(), commit_data); }}} triggers the following error: boost_1_59_0/boost/intrusive/detail/tree_value_compare.hpp:64:26: error: no match for call to ‘(boost::move_detail::identity) (const int&)’ { return KeyOfValue()(key); } using gcc-5.4 Full snippet attached",Bugs,closed,To Be Determined,intrusive,Boost 1.59.0,Problem,fixed,,