
30 Apr
2011
30 Apr
'11
3:15 p.m.
On 29/04/2011 20:37, John Bytheway wrote:
On 27/04/11 23:11, Mathias Gaunard wrote: <snip>
If that runtime conversion is a concern, it's also possible to do that at compile time, at least with C++0x (syntax is ugly in C++03).
Do you imagine that user-defined literals allow this?
No.
If there's some other way to get compile-time access to characters more neatly than in C++03, then please share it; I would like to know!
In C++0x, "some_literal"[some_constant_integer_expression] is a constant expression.