[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: CSmartHandle

From: Oto BREZINA <otik_at_e-posta.sk>
Date: Tue, 22 Dec 2015 08:24:48 +0100

On 2015-12-21 21:36, Stefan Küng wrote:
> On 21.12.2015 21:19, Oto BREZINA wrote:
>> On 2015-12-21 19:37, Stefan Küng wrote:
>>> You're right.
>>> I've changed it in r27081.
>> nice one, why to call default constructor with this solution ?
> because with C++11 it's possible, and it avoids code duplication (even
> if the initialization is only one line of code).
Ok. Anyway, I don't see a point there. 1st no other (conversion)
constructor use that, 2nd the only value/member get overwritten

Oto

PS: compiler we use is not C++11 yet, and Im trying to make code as
similar as possible. I can't use = delete statemant, but I don't want to
remove it from TSVN code as unlike calling default constructor I see
advantages here.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=3151664

To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-12-22 08:24:57 CET

This is an archived mail posted to the TortoiseSVN Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.