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_nodestd::string,std::string>,std:
:allocatorstd::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::equal_range(const
std::basic_string<_Elem,_Traits,_Ax> &)'
1> with
1> [
1>
_Ty1=boost::property_tree::basic_ptreestd::string,std::string::assoc_itera
tor,
1>
_Ty2=boost::property_tree::basic_ptreestd::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' 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_nodestd::string,std::string>,std:
:allocatorstd::string,std::string>>>>
1> ]
I am using boost 1.41 with VC 7.1
Any help is appreciated!!!!!!
Ken Murphy