Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-06-01 Thread Ed Smith-Rowland
Committed the following... 2013-05-30 Ed Smith-Rowland 3dw...@verizon.net Implement N3642 - User-defined Literals for Standard Library Types * include/bits/parse_numbers.h: New. * include/std/chrono: Add duration literal operators. * include/bits

Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-06-01 Thread Paolo Carlini
Hi, Ed Smith-Rowland 3dw...@verizon.net ha scritto: Committed the following... Looks like great work, thanks! I'm still in vacations, and barely reading email on a small screen, just wanted to point out that apparently the patch has a few redundant inline preceding constexpr. Could you

Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread Ed Smith-Rowland
, this builds and tests clean on x86_64-linux. Thanks, Ed 2013-05-30 Ed Smith-Rowland 3dw...@verizon.net Implement N3642 - User-defined Literals for Standard Library Types Implement N3660 - User-defined Literals for std::complex, part 2 of UDL for Standard Library Types

Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread Daniel Krügler
2013/5/31 Ed Smith-Rowland 3dw...@verizon.net: Greetings, This patch implements N3642 - User-defined literals for std::chrono::duration and std::basic_string and N3660 - User-defined literals for std::complex. N3660 was rejected during the Bristol meeting, the main reason being the ugliness

Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread Ed Smith-Rowland
/gnu.ver: Add literal operator symbols. 2013-05-30 Ed Smith-Rowland 3dw...@verizon.net Implement N3642 - User-defined Literals for Standard Library Types * include/bits/parse_numbers.h: New. * include/std/chrono: Add duration literal operators. * include/bits

Re: Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread 3dw4rd
On 05/31/13, Ed Smith-Rowland3dw...@verizon.net wrote: ... 1. Put the precision first in upper case. As a matter of style I prefer 123456L to 123456l for normal literals anyway. Also, the precision snuggles next to the number - then you modify it. That seems logical to me. Also,

Re: Implement N3642 - User-defined Literals for Standard Library Types

2013-05-31 Thread Jonathan Wakely
On 31 May 2013 15:15, Ed Smith-Rowland wrote: Greetings, This patch implements N3642 - User-defined literals for std::chrono::duration and std::basic_string and N3660 - User-defined literals for std::complex. Great, thanks! User-defined literals were separated into two papers because of