Closed
Description
The description fo the what() function says:
"Returns: A string containing runtime_error::what(). The exact format is unspecified. Implementations
are encouraged but not required to include path1.native_string() if not empty, path2.native_-
string() if not empty, and system_error::what() strings in the returned string."
The native_string() should likely be just string().
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
jwakely commentedon May 17, 2017
More likely
native()
BoPersson commentedon May 17, 2017
native() returns wstring on Windows, so cannot be used in an exception what-message.
jwakely commentedon May 17, 2017
Good point. My implementation uses
string()
but then there's no difference for POSIX. Boost also usesstring()
.jensmaurer commentedon May 25, 2017
Is this editorial? The fix seems normative.
jwakely commentedon May 25, 2017
It's being dealt with as an LWG issue.
jwakely commentedon May 25, 2017
Although it's arguably not normative, since
native_string()
doesn't exist, so the current wording is inconsistent, and it's only encouragement anyway.jwakely commentedon May 25, 2017
http://cplusplus.github.io/LWG/lwg-active.html#2965