Re: [Boost-bugs] [Boost C++ Libraries] #4786: custom property_tree

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #4786: custom property_tree
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-21 13:28:59


#4786: custom property_tree
-------------------------------+--------------------------------------------
  Reporter: anonymous | Owner: cornedbee
      Type: Feature Requests | Status: new
 Milestone: To Be Determined | Component: property_tree
   Version: Boost 1.44.0 | Severity: Problem
Resolution: | Keywords: property_tree
-------------------------------+--------------------------------------------

Comment (by saleyn):

 Replying to [comment:7 anonymous]:
> that last idea of guessing the type by its looks sounds dangerous to me.
 it may prove even worse than the try/catch/lexical_cast cascade. it's
 better to provide a way to supply some "schema" to the parser so he would
 know each property's type. explicit is better than implicit, as they say.

 Agree. The explicit schema would be a much better solution. Especially if
 that schema can be uniformly adapted across all ptree's parsers.

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/4786#comment:9>
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:09 UTC