Boost logo

Boost :

From: Joe Gottman (jgottman_at_[hidden])
Date: 2006-04-22 16:30:59

"JOAQUIN LOPEZ MU?Z" <joaquin_at_[hidden]> wrote in message

----- 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.

If you do this, perhaps you can add a second optional parameter for
separator character:

boost::property_path registryEntry ("", '.');

Boost list run by bdawes at, gregod at, cpdaniel at, john at