Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| From | Daniel Krügler<daniel.kruegler@googlemail.com> |
|---|---|
| Newsgroups | comp.std.c++ |
| Subject | Re: missing description : error_category's destructor |
| Date | 2012-03-21 08:42 -0700 |
| Organization | A noiseless patient Spider |
| Message-ID | <jk9o3d$2m7$1@dont-email.me> (permalink) |
| References | <cc81163c-0ecb-4280-a645-20f75c7e4266@vs2g2000pbc.googlegroups.com> |
On 2012-03-20 07:22, Akira Takahashi wrote: > I found missing description. N3337 19.5.1.1 error_category: > virtual ~error_category() noexcept; > > This function is nothing description. I agree, because a virtual destructor is not covered by the general statement in [functions.within.classes] p1. > Correct code is follow? > virtual ~error_category() noexcept = default; Except for the explicit noexcept specification, yes. There is a general normative statement in [res.on.exception.handling] p4 "Every destructor in the C++ standard library shall behave as if it had a non-throwing exception specification." which rules this already. This is the reason why *no* destructor declaration in the library specification does have any noexcept specification. Adding this suddenly at one place would make give the impression that we have a special case here. HTH& Greetings from Bremen, Daniel Krügler -- [ comp.std.c++ is moderated. To submit articles, try posting with your ] [ newsreader. If that fails, use mailto:std-cpp-submit@vandevoorde.com ] [ --- Please see the FAQ before posting. --- ] [ FAQ: http://www.comeaucomputing.com/csc/faq.html ]
Back to comp.std.c++ | Previous | Next — Previous in thread | Next in thread | Find similar
missing description : error_category's destructor Akira Takahashi <faithandbrave@gmail.com> - 2012-03-19 23:22 -0700
Re: missing description : error_category's destructor Daniel Krügler<daniel.kruegler@googlemail.com> - 2012-03-21 08:42 -0700
Re: missing description : error_category's destructor Akira Takahashi<faithandbrave@gmail.com> - 2012-03-21 11:36 -0700
csiph-web