A new WG21 paper is available. If you are not a committee member, please use the comments section below or the std-proposals forum for public discussion.
Document number: N3531
Date: 2013-03-08
User-defined Literals for Standard Library Types (version 3)
by Peter Sommerlad
Excerpt:
The standard library is lacking pre-defined user-defined literals, even though the standard reserves names not starting with an underscore for it. Even the sequence of papers that introduced UDL to the standard contained useful examples of suffixes for creating values of standard types such as
s
for std::string
,h
forstd::chrono::hours
andi
for imaginary parts of complex numbers.Discussion on the reflector in May 2012 and in Portland Oct 2012 showed demand for some or even many pre-defined UDL operators in the standard library...
Add a Comment
Comments are closed.