activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: Questions about getCMSReplyTo
Date Fri, 05 Dec 2008 15:29:02 GMT
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/




Mime
View raw message