Boost logo

Boost :

From: Silex (silex0r_at_[hidden])
Date: 2006-05-08 04:41:52


I'm not sure you can do (string)"A.".
Try ::createlog(string("A.") + get_name());

On 5/8/06, mos <mmosquito_at_[hidden]> wrote:
>
> Hi!
> I have a class A, and A have several instance, each instance I want have
> a logger (not all of A share a logger), what can I do.
> I had throught like this:
>
> class A{
> logger m_log;
> const char* get_name(); //like tom,jarry...
> void CreateLog() {
> m_log = ::createlog((string)"A."+get_name());
> }
> }
>
> but seems can not get there, what can I do?
> Thanks in advance for your help.
> mos.
>
>
> _______________________________________________
> Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
>


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