Note: This paper was adopted into draft C++14 on Saturday at the Bristol UK ISO C++ meeting.
A new WG21 paper is available. A copy is linked below, and the paper will also appear in the next normal WG21 mailing. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3642
User-defined Literals for Standard Library Types (part 1 - version 4)
by Peter Sommerlad
This allows code like the following:
auto mystring = "hello world"s; // type std::string auto mytime = 42ns; // type chrono::nanoseconds
Add a CommentComments are closed.