Subject: [Boost-bugs] [Boost C++ Libraries] #5347: property_tree documentation error / ptree bug ?
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2011-03-21 12:25:30
#5347: property_tree documentation error / ptree bug ?
---------------------------------------------------+------------------------
Reporter: Mihai Barbos <mihai.barbos@â¦> | Owner: cornedbee
Type: Bugs | Status: new
Milestone: To Be Determined | Component: property_tree
Version: Boost Release Branch | Severity: Problem
Keywords: |
---------------------------------------------------+------------------------
boost 1.46.1
More or less straight out of the docu:
#include <boost/property_tree/ptree.hpp>
boost::property_tree::ptree pt;
boost::property_tree::ptree::const_iterator it = pt.find( "blabla" );
Compiler's opinion:
error: conversion from
âboost::property_tree::basic_ptree<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >::assoc_iteratorâ to non-scalar type
âboost::property_tree::basic_ptree<std::basic_string<char,
std::char_traits<char>, std::allocator<char> >, std::basic_string<char,
std::char_traits<char>, std::allocator<char> >,
std::less<std::basic_string<char, std::char_traits<char>,
std::allocator<char> > > >::const_iteratorâ requested
$gcc --version
$gcc (Ubuntu/Linaro 4.4.4-14ubuntu5) 4.4.5
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/5347> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:06 UTC