
12 Feb
2009
12 Feb
'09
8:04 a.m.
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_... Joaquín M López Muñoz Telefónica, Investigación y Desarrollo