to_chars
/ from_chars
depend on std::string
Section: 22.2 [utility] Status: Resolved Submitter: Jens Maurer Opened: 2017-04-11 Last modified: 2017-07-16
Priority: Not Prioritized
View all other issues in [utility].
View all issues with Resolved status.
Discussion:
We added from_chars_result
and to_chars_result
into <utility>
, but those contain
error_code
instances, which come from <system_error>
. This creates a circular dependency
issue which is somewhat difficult to resolve, as error_code
depends on error_category
which has virtuals
that return string
— it would effectively force putting all of <string>
into
<utility>
.
from_chars_result
/ to_chars_result
to an errc
instead of an error_code
(as a
fast-track DR against 17)?
[2017-06-27, Jens comments]
The paper P0682R0 "Repairing elementary string conversions" is available in the pre-Toronto mailing and provides wording.
[2017-07 Toronto]
Resolved by the adoption of P0682R1 in Toronto.
Proposed resolution: