On Fri, 2008-12-05 at 07:06 -0800, Sodan wrote:
> So if I do
> Message *clone = message->clone();
> and then later (out of scope) clone the dest,
> then that should be safe also, right ?
> 
> thanx
> Søren

Yes, all clone operations in ActiveMQ-CPP perform deep copies, so
anything you clone you can assume that the internal data is independent
of the original and can be cloned itself without worrying about lifetime
of the original object.

-Tim


-- 
Tim Bish
http://fusesource.com
http://timbish.blogspot.com/



Reply via email to