Subject: Re: [boost] [preprocessor] pp-strings
From: John Bytheway (jbytheway+boost_at_[hidden])
Date: 2011-06-28 14:05:41
On 27/06/11 22:40, Matt Calabrese wrote:
> On Mon, Jun 27, 2011 at 5:34 PM, Mathias Gaunard <
> mathias.gaunard_at_[hidden]> wrote:
>> FYI, You can do STRING_TO_TYPE("MyType") or STRING_TO_TYPE(MyType) in C++0x
>> by expanding it to "MyType", "MyType" etc.
> IIRC you can do it even more directly with C++0x user-defined literals,
> though I don't think any compilers support them yet:
By my reading of the standard that doesn't work with user defined string
literals, only integer and floating point. User defined string literals
can only be accessed at runtime.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk