id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 4140,Unable to compile code calling equal_range () members,anonymous,Sebastian Redl,"The following code {{{ #include int main (int, char * []) { boost::property_tree::ptree pt; pt.equal_range (""""); } }}} generates the following error message using gcc-4.4.3 on 64-bit Snow Leopard: {{{ In file included from ../boost/boost/property_tree/ptree.hpp:515, from equal_range.cpp:2: ../boost/boost/property_tree/detail/ptree_implementation.hpp: In member function 'std::pair::assoc_iterator, typename boost::property_tree::basic_ptree::assoc_iterator> boost::property_tree::basic_ptree::equal_range(const Key&) [with Key = std::basic_string, std::allocator >, Data = std::basic_string, std::allocator >, KeyCompare = std::less, std::allocator > >]': equal_range.cpp:8: instantiated from here ../boost/boost/property_tree/detail/ptree_implementation.hpp:473: error: no matching function for call to 'std::pair, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator>::pair(boost::multi_index::detail::bidir_node_iterator, std::allocator >, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > > >, std::allocator, std::allocator >, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > > > > > > >&, boost::multi_index::detail::bidir_node_iterator, std::allocator >, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > > >, std::allocator, std::allocator >, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > > > > > > >&)' /opt/local/include/gcc44/c++/bits/stl_pair.h:83: note: candidates are: std::pair<_T1, _T2>::pair(const _T1&, const _T2&) [with _T1 = boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator, _T2 = boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator] /opt/local/include/gcc44/c++/bits/stl_pair.h:79: note: std::pair<_T1, _T2>::pair() [with _T1 = boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator, _T2 = boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator] /opt/local/include/gcc44/c++/bits/stl_pair.h:68: note: std::pair, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator>::pair(const std::pair, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator, boost::property_tree::basic_ptree, std::allocator >, std::basic_string, std::allocator >, std::less, std::allocator > > >::assoc_iterator>&) }}} I see similar error messages using gcc-4.0, 4.2, and 4.3 on Snow[[BR]] Leopard, Fedora Core 12, and RHEL 4 with Boost 1.41, 1.42, and trunk from SVN.[[BR]] Changing the argument to equal_range () to std::string("""") or [[BR]] boost::property_tree::ptree::key_type ("""") generates similar error messages. ",Bugs,closed,To Be Determined,property_tree,Boost Development Trunk,Problem,fixed,equal_range ptree,