Topic: N2760 Defect - <bitset> synopsis overspecified
Author: "Bo Persson" <bop@gmb.dk>
Date: Mon, 5 Oct 2009 14:14:02 CST Raw View
The resolutions to some library defect reports, like #1178
http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#1178
requires that #includes in each synopsis should be taken literally.
This means that the <bitset> header now MUST include <stdexcept>, even
though none of the exceptions are mentioned in the <bitset> header.
Many other classes are required to throw exceptions like
invalid_argument and out_of_range, without explicitly including
<stdexcept> in their synopsis. It is totally possible for
implementations to throw the needed exceptions from utility functions,
whose implementations are not visible in the headers.
I propose that <stdexcept> is removed from the <bitset> header.
Bo Persson
--
[ 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]
[ --- Please see the FAQ before posting. --- ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html ]