Boost logo

Boost :

From: Manuel Jung (gzahl_at_[hidden])
Date: 2008-04-04 08:43:32


Hi,
Thank you ver much. This is working now :-). Maybe a nice addition to the
documentation?
Cheers,
Manuel

John Torjo wrote:

> Manuel Jung wrote:
>> Hi John,
>>
>> thanks for the code. But im still missing one point. How do i access the
>> data in the std::vector? I understand that it is in a shared pointer now.
>> The context obeject is not accessible from outside.
>> I have done this:
>>
>> to_string To_String;
>>
>> And than added this to my logger destinations:
>>
>> g_l()->writer().add_destination( To_String );
>>
>>
> This is fine.
> To access the vector, just add a member function of to_string.
>
> const std::vector<std::string> & strings() const { return context().strs;
> }
>
> Best,
> John
>
>


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk