Opened 12 years ago
Closed 11 years ago
#5347 closed Bugs (fixed)
property_tree documentation error / ptree bug ?
Reported by: | Owned by: | Sebastian Redl | |
---|---|---|---|
Milestone: | To Be Determined | Component: | property_tree |
Version: | Boost Release Branch | Severity: | Problem |
Keywords: | Cc: |
Description
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
Change History (2)
comment:1 by , 12 years ago
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Documentation should be fixed in r71994.
This is a documentation bug. find() returns a ptree::assoc_iterator.