
4 Apr
2008
4 Apr
'08
12:43 p.m.
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