New adopted paper: N3642, User-defined Literals for Standard Library Types (pt1 v4) -- P. Sommerlad

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

Date: 2013-04-18

User-defi ned 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 Comment

Comments are closed.

Comments (1)

0 0

monamimani said on Apr 25, 2013 03:44 PM:

I think there is something important missing in the proposal. Specially for scientific computation. picoseconds and femtoseconds. Maybe it should implement from 10^24 to 10^-24 seconds. http://en.wikipedia.org/wiki/SI_prefix