Boost logo

Boost :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2006-04-29 17:50:15

"Stephen Dolan" wrote:

> file = ptree.get<std::string>("config.filename");
> Personally, I don't think its a good idea to define new syntaxes and pass
> them around as strings. It would be a bit more effort to implement, but I
> think (something like) the following would be preferable:
> file = ptree.get<std::string>["config"]["filename"]

If you store the keys themselves in configuration
or if you have to implement interface to a scripting
engine the strings are very, very handy.


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