Subject: Re: [boost] [system] Add noexcept to conform with C++11
From: Marshall Clow (mclow.lists_at_[hidden])
Date: 2012-12-10 16:39:52
On Dec 10, 2012, at 1:33 PM, Christopher Kohlhoff <chris_at_[hidden]> wrote:
> 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 compiles w/o error using clang as well. (even with -Wall -Wpedantic)
Marshall Clow Idio Software <mailto:mclow.lists_at_[hidden]>
A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
-- Yu Suzuki
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk