From 5946969458708682265
X-Google-Thread: f78e5,82cd3599ce330676
X-Google-NewGroupId: yes
X-Google-Attributes: gid7894ca11fe,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Path: g2news1.google.com!news1.google.com!Xl.tags.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local2.nntp.dca.giganews.com!news.giganews.com.POSTED!not-for-mail
NNTP-Posting-Date: Fri, 09 Apr 2010 12:00:05 -0500
Return-Path: <cppmods@ruralroute.cs.rpi.edu>
To: (Usenet)
From: Alexander Terekhov <terekhov@web.de>
Newsgroups: comp.std.c++
Subject: Re: throwing in a noexcept(true) function
Organization: A noiseless patient Spider
Sender: cppmods@cs.rpi.edu
Approved: austern@google.com
Message-ID: <4BBF001D.E0E17C69@web.de>
References: <4BBE39E5.5000409@f2.dion.ne.jp>
 <4bbe48f9.86c3f10a.47b7.ffffcac4@mx.google.com>
Reply-To: terekhov@web.de
Content-Type: text/plain; charset=us-ascii
X-Original-Date: Fri, 09 Apr 2010 12:23:25 +0200
X-Submission-Address: std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
Date: Fri,  9 Apr 2010 11:57:24 CST
Lines: 23
X-Usenet-Provider: http://www.giganews.com
X-Trace: sv3-BGQ0L7q2FP6nM9853a6bPRL3OdrU5z7Spp6LUDDABkkpKH+Orw7qwzv/TQZWz+bi3SFmv92XISlA4D0!g+GtAB1CGpgVFfHf2ZBSXXPjhtNX6sEOp0ji4MuYS87wdfmI
X-Complaints-To: abuse@giganews.com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
Xref: g2news1.google.com comp.std.c++:2409


Herb Sutter wrote:

[... optimizations ...]

> Whether we required unwinding or not, it's sufficient to just put a
> bit on the stack frame that is noexcept and checking it on the way out
> -- if( bNoExcept && exception_is_active() ) terminate();.

Unwinding significantly reduces optimization opportunities. Allowing
unwinding for noexcept is EVIL!

regards,
alexander.

--
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use
mailto:std-c++@netlab.cs.rpi.edu<std-c%2B%2B@netlab.cs.rpi.edu>
]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]



