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

Re: Patch: Wrong ownership sematics for BSTRs

From: Kazutoshi Satoda <k_satoda_at_f2.dion.ne.jp>
Date: Tue, 19 Jan 2010 01:52:04 +0900

Dmitry wrote:
> Stefan wrote:
>>I've added (std::nothrow) to a few new calls in r18337.
> I found some more places to add that. Patch follows.

Are you aware of that adding std::nothrow doesn't prohibit throwing
from the constructor?

For example,
    new (std::nothrow) CSVNPropertyPage(files_);
this doesn't throw if the allocation of CSVNPropertyPage itself failed,
but does throw std::bad_alloc if an allocation fails during copy from
files_ into CSVNPropertyPage::filenames.

-- 
k_satoda
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=757&dsMessageId=2440021
To unsubscribe from this discussion, e-mail: [dev-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2010-01-18 17:52:13 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.