Boost logo

Boost :

Subject: Re: [boost] [log] Comments
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-03-15 18:58:09


Andrey Semashev wrote:
> On 03/15/2010 11:36 PM, Steven Watanabe wrote:
>> Andrey Semashev wrote:
>>> That should be quite possible, if there was some way to select the
>>> attributes from the rest of the named parameters for the logger.
>>> Although that would mean the attributes are added/removed from the
>>> logger at each record.
> I think, it should be a single keyword that accumulates all attributes
> to be added. It's just how to store them in the named argument. In a
> fusion::vector, perhaps?..

fusion::vector could work. Something like

fusion::make_vector(std::make_pair("Severity", severity),
std::make_pair("Channel", component))

In Christ,
Steven Watanabe

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