Property Tree problem with equal range.

I am using Boost 1.43 and last line in the following code causes this error:
/usr/local/include/boost/property_tree/detail/ptree_implementation.hpp:471:
error: ‘class boost::multi_index::detail::bidir_node_iterator , boost::property_tree::basic_ptree Here is the code fragment. pt is the property tree.
std::string key = "program.query";
std::size_t num = pt->count(key);
std::cout << "Number = " << num << std::endl;
typedef boost::property_tree::ptree::assoc_iterator assocIt;
typedef std::pair< assocIt, assocIt > TRangeItPair;
TRangeItPair er = pt->equal_range(key);
The only fix I could see was here:
http://lists.boost.org/boost-users/2010/02/55806.php
But I cannot see how to apply it to the above code fragment.
Any help is appreciated.
Regards
Andrew
--
___________________________________________
Andrew J. P. Maclean
Centre for Autonomous Systems
The Rose Street Building J04
The University of Sydney 2006 NSW
AUSTRALIA
Ph: +61 2 9351 3283
Fax: +61 2 9351 7474
URL: http://www.acfr.usyd.edu.au/
___________________________________________
participants (1)
-
Andrew Maclean