LWG Issue 2087: iostream_category() and noexcept

Marshall Clow mclow.lists at gmail.com
Sat Oct 12 12:43:53 PDT 2013


http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-defects.html#2087

Mark the following calls as _NOEXCEPT:
	error_code make_error_code(io_errc e) _NOEXCEPT ;
	error_condition make_error_condition(io_errc e)  _NOEXCEPT ;
	const error_category& iostream_category() _NOEXCEPT ;

Since adding no except is a conforming extension to the standard, do it unconditionally; not just for C++14.
Also, add a missing set of "()" in the synopsis; this is purely cosmetic - no code change there.

-- Marshall

Marshall Clow     Idio Software   <mailto:mclow.lists at gmail.com>

A.D. 1517: Martin Luther nails his 95 Theses to the church door and is promptly moderated down to (-1, Flamebait).
        -- Yu Suzuki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ish2087.patch
Type: application/octet-stream
Size: 1432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20131012/245444f2/attachment.obj>


More information about the cfe-commits mailing list