widelands-dev team mailing list archive
-
widelands-dev team
-
Mailing list archive
-
Message #02822
Re: unique_ptr question
rtfm:
http://en.cppreference.com/w/cpp/memory/unique_ptr
On 06.10.2014, at 09:08, Tibor Bamhor <tiborb95@xxxxxxxxx> wrote:
> Hi,
>
> small question, I am using unique pointer, this way:
>
> std::unique_ptr<Path> path2 (new Path());
>
> Is it necessary to call any 'delete' on the end of scope (end of curly braces)?
>
> Probably not, I think.....
>
> Thanks
> _______________________________________________
> Mailing list: https://launchpad.net/~widelands-dev
> Post to : widelands-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~widelands-dev
> More help : https://help.launchpad.net/ListHelp
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
Follow ups
References