Boost logo

Boost :

Subject: Re: [boost] [log] Review-ready version in the Vault
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2009-02-12 03:04:49


Andrey Semashev <andrey.semashev <at> gmail.com> writes:

> Sorry, I don't see much difference between
>
> logger lg(name);
>
> and
>
> logger& lg = name::get();
>
> The latter looks more descriptive to me. If you like your syntax more,
> you can write a trivial wrapper around "get()" or use flyweight.
> However, after getting a quick look at flyweight docs, it doesn't seem
> to provide inter-module facilities.

There's a component for getting intermodule flyweights:

http://boost.org/libs/flyweight/doc/tutorial/configuration.html#intermodule_holder

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