Title
to_chars / from_chars depend on std::string
Status
resolved
Section
[utility]
Submitter
Jens Maurer

Created on 2017-04-11.00:00:00 last changed 82 months ago

Messages

Date: 2017-07-16.21:18:25

[ 2017-07 Toronto ]

Resolved by the adoption of P0682R1 in Toronto.

Date: 2017-06-15.00:00:00

[ 2017-06-27, Jens comments ]

The paper P0682R0 "Repairing elementary string conversions" is available in the pre-Toronto mailing and provides wording.

Date: 2017-04-11.00:00:00

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>.

Since (I believe) nobody has implemented this yet, would there be support for changing the member of from_chars_result / to_chars_result to an errc instead of an error_code (as a fast-track DR against 17)?

History
Date User Action Args
2017-07-16 21:18:25adminsetmessages: + msg9430
2017-07-16 21:18:25adminsetstatus: new -> resolved
2017-06-27 21:10:35adminsetmessages: + msg9304
2017-04-11 00:00:00admincreate