Boost logo

Boost :

From: JOAQUIN LOPEZ MU?Z (joaquin_at_[hidden])
Date: 2006-04-22 09:05:47


----- Mensaje original -----
De: Marcin Kalicinski <kalita_at_[hidden]>
Fecha: Sábado, Abril 22, 2006 2:48 pm
Asunto: [boost] [Property_tree review] Summary of enhancements proposed
        so far

> I created a brief summary of enhancements/changes to property_tree
> which
> were proposed so far.
>
> 1. Make path a class in its own right and overload / (division)
> operator to
> concatenate path objects efficiently. This removes need for ugly
> default
> separator, and half of the get/put overloads. It also boosts
> performance (no
> more string operations on path), and IMHO will generally improve
> interface
> of the library. Most importantly, it largely does maintain
> compatibility
> with existing interface.

Although a proper path class seems so much neater, I think
you should still keep some API to specify a path as a
single string, maybe something like:

boost::property_path::path p("Dante/Divina Commedia/Inferno");

Why? Because this way you retain the ability to store a path
as a program resource outside the code.

Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk