Created on 2011-09-22.00:00:00 last changed 131 months ago
Proposed resolution:
This wording is relative to the FDIS.
Change [iostreams.base.overview], header <ios> synopsis as indicated:
#include <iosfwd> namespace std { […] error_code make_error_code(io_errc e) noexcept; error_condition make_error_condition(io_errc e) noexcept; const error_category& iostream_category() noexcept; }
Change the prototype declarations in [error.reporting] as indicated:
error_code make_error_code(io_errc e) noexcept;
-1- Returns: error_code(static_cast<int>(e), iostream_category()).
error_condition make_error_condition(io_errc e) noexcept;
-2- Returns: error_condition(static_cast<int>(e), iostream_category()).
const error_category& iostream_category() noexcept;
-3- Returns: A reference to an object of a type derived from class error_category.
-4- The object’s default_error_condition and equivalent virtual functions shall behave as specified for the class error_category. The object’s name virtual function shall return a pointer to the string "iostream".
[ 2013-09-29, Chicago ]
Apply to Working Paper
[ 2013-04-20, Bristol ]
Unanimous.
Resolution: move to tentatively ready.In <system_error> we have:
const error_category& generic_category() noexcept; const error_category& system_category() noexcept;
In <future> we have:
const error_category& future_category() noexcept;
But in <ios> we have:
const error_category& iostream_category();
Is there any reason that iostream_category() is not declared with noexcept or is this an oversight?
Daniel:
This looks like an oversight to me. We made the above mentioned changes as part of noexcept-ifying the thread library but iostream_category() was skipped, so it seems to be forgotten. There should be no reason, why it cannot be noexcept. When doing so, we should also make these functions noexcept (similar to corresponding overloads):error_code make_error_code(io_errc e); error_condition make_error_condition(io_errc e);
Suggested wording provided by Daniel.
History | |||
---|---|---|---|
Date | User | Action | Args |
2014-02-20 13:20:35 | admin | set | status: wp -> c++14 |
2013-09-29 10:45:42 | admin | set | messages: + msg6656 |
2013-09-29 10:45:42 | admin | set | status: voting -> wp |
2013-09-23 13:24:31 | admin | set | status: ready -> voting |
2013-05-20 16:25:01 | admin | set | messages: + msg6504 |
2013-05-20 16:25:01 | admin | set | status: new -> ready |
2011-11-26 12:33:23 | admin | set | messages: + msg5907 |
2011-09-22 00:00:00 | admin | create |