Boost logo

Boost Users :

Subject: [Boost-users] [property_tree]problem with equal_range
From: Ken Murphy (murf_at_[hidden])
Date: 2010-01-25 19:43:15


Hello all,

I am getting an error while trying to compile the following program:

#include "boost/property_tree/ptree.hpp"

int main(int argc, char* argv[])

{
        boost::property_tree::ptree t;
        t.equal_range("KEY");
        return 0;
}

Compiler output:

1>c:\hibbettlinux\src\boost-1.41.0\boost\property_tree\detail\ptree_impl
1>emen
tation.hpp(448) : error C2039: 'base' : is not a member of
'boost::multi_index::detail::bidir_node_iterator<Node>'
1> with
1> [
1>
Node=boost::multi_index::detail::ordered_index_node<boost::multi_index::deta
il::index_node_base<std::pair<const
std::string,boost::property_tree::basic_ptree<std::string,std::string>>,std:
:allocator<std::pair<const
std::string,boost::property_tree::basic_ptree<std::string,std::string>>>>>
1> ]
1>
c:\hibbettlinux\src\boost-1.41.0\boost\property_tree\detail\ptree_implementa
tion.hpp(444) : while compiling class template member function
'std::pair<_Ty1,_Ty2>
boost::property_tree::basic_ptree<Key,Data>::equal_range(const
std::basic_string<_Elem,_Traits,_Ax> &)'
1> with
1> [
1>
_Ty1=boost::property_tree::basic_ptree<std::string,std::string>::assoc_itera
tor,
1>
_Ty2=boost::property_tree::basic_ptree<std::string,std::string>::assoc_itera
tor,
1> Key=std::string,
1> Data=std::string,
1> _Elem=char,
1> _Traits=std::char_traits<char>,
1> _Ax=std::allocator<char>
1> ]
1> c:\hibbettlinux\src\platform\vc80\test\test.cpp(9) : see
1> reference
to class template instantiation
'boost::property_tree::basic_ptree<Key,Data>' being compiled
1> with
1> [
1> Key=std::string,
1> Data=std::string
1> ]
1>c:\hibbettlinux\src\boost-1.41.0\boost\property_tree\detail\ptree_impl
1>emen
tation.hpp(449) : error C2039: 'base' : is not a member of
'boost::multi_index::detail::bidir_node_iterator<Node>'
1> with
1> [
1>
Node=boost::multi_index::detail::ordered_index_node<boost::multi_index::deta
il::index_node_base<std::pair<const
std::string,boost::property_tree::basic_ptree<std::string,std::string>>,std:
:allocator<std::pair<const
std::string,boost::property_tree::basic_ptree<std::string,std::string>>>>>
1> ]

I am using boost 1.41 with VC 7.1

Any help is appreciated!!!!!!

Ken Murphy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net