Boost logo

Boost Users :

From: Hughes, James (jhughes_at_[hidden])
Date: 2006-11-20 11:11:08


  
> void MyClass::init()
> {
> // either
> spOther = shared_ptr<someOtherClass>(new someOtherClass(this));
or
> spOther.reset(new someOtherClass(this)); }
>
> Dave.
> --
> Dave Slutzkin
> Melbourne, Australia
> daveslutzkin_at_[hidden]

Another beginners question...

Are the two ways of doing this, as shown above, exactly the same? i.e.
execute the same code and are therefore at the same cost, or is one more
efficient than the other?

James

>
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]
> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>

This message (including any attachments) contains confidential
and/or proprietary information intended only for the addressee.
Any unauthorized disclosure, copying, distribution or reliance on
the contents of this information is strictly prohibited and may
constitute a violation of law. If you are not the intended
recipient, please notify the sender immediately by responding to
this e-mail, and delete the message from your system. If you
have any questions about this e-mail please notify the sender
immediately.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net