Subject: Re: [Boost-bugs] [Boost C++ Libraries] #7828: use BOOST_FOREACH push_back some thing into vector, the first value is blank.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-12-27 01:20:27
#7828: use BOOST_FOREACH push_back some thing into vector,the first value is
blank.
-----------------------------------+----------------------------------------
Reporter: yuanzhan@⦠| Owner:
Type: Bugs | Status: new
Milestone: To Be Determined | Component: None
Version: Boost 1.50.0 | Severity: Problem
Resolution: | Keywords: BOOST_FOREACH
-----------------------------------+----------------------------------------
Comment (by anonymous):
I use BOOST_FOREACH paser a xml document.The xml document like this:
<c>
<client>00801038</client>
<client>00802980</client>
<client>01600817</client>
</client_set>
I ues BOOST_FOREACH like this:
std::vector<std::string> ClientSet;
BOOST_FOREACH(boost::property_tree::ptree::value_type &v,
pt.get_child("client_set"))
ClientSet.push_back(v.second.data());
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/7828#comment:1> 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:11 UTC