Re: [Cppcms-users] Session problem
Brought to you by:
artyom-beilis
From: <ele...@ex...> - 2012-04-10 23:55:12
|
I see, thank you. What Ive done is I've created a apps::Master* pointer in the JSON_Service class and in the constructor initialization list I called ctr_(new apps::Master(srv)) and then in the constructor it self I do attach(ctr_); The question - It it ok to use a raw pointer - does calling attach() transfer the responsibility of deleting the pointer to cppcms::application or should I use something like intrusive_ptr and then call attach(ctr_.get())? Cheers, Petr |