28 Apr
2013
28 Apr
'13
8:18 a.m.
Folks, I've been experimenting with the new C++11 feature "user-defined-literals", and they're pretty impressive ;-)
So far I've been able to write code such as:
auto i = 0x1234567890abcdef1234567890abcdef_cppi;
and generate value i as a signed 128-bit integer. It's particulary remarkable because:
* It actually works ;-)
<snip>
This is obviously useful to the multiprecision library, and I'm sure for Units as well, but that leaves a couple of questions:
Wow! If I ever get my behind in gear on the radix-2 floating-point backend, do you think it potentially be used there in combination with constexpr as well? Sincerely, Chris.