Subject: Re: [boost] [system] Add noexcept to conform with C++11
From: Vicente Botet (vicente.botet_at_[hidden])
Date: 2012-12-11 03:15:49
Vicente Botet wrote
> Le 10/12/12 22:33, Christopher Kohlhoff a Ã©crit :
>> Hi Vicente,
>> On Tue, Dec 11, 2012, at 01:27 AM, Vicente Botet wrote:
>>> I don't know what the C++ standard says, but at least MSVC 10.0,
>>> and gcc-4.8.0 complain when I define a virtual function as noexept when
>>> original declaration was not noexcept.
>> This snippet illustrates what I mean:
>> class base
>> virtual const char* name() const = 0;
>> class derived : public base
>> virtual const char* name() const noexcept;
>> // ...
>> const char* derived::name() const noexcept
>> return "";
>> This compiles without error on gcc 4.7.2 (debian). Can you please
>> confirm whether your experimental changes follow this form?
> This as well as the modification I checked on Windows-MinGW compiles
> well in MacOs for
> on C++11 mode.
> I will check your example tomorrow on MinGW. Could someone else check
> this simple example on MinGW with compiler supporting noexcept in C++11
My bad. I had a syntax error :(
Ok. Lets go for the Chris proposal. Beman, I will post a patch.
-- View this message in context: http://boost.2283326.n4.nabble.com/system-Add-noexcept-to-conform-with-C-11-tp4639668p4639842.html Sent from the Boost - Dev mailing list archive at Nabble.com.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk