Boost logo

Boost :

Subject: Re: [boost] [preprocessor] pp-strings
From: Matt Calabrese (rivorus_at_[hidden])
Date: 2011-06-27 17:40:34

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"[0], "MyType"[1] 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:


-Matt Calabrese

Boost list run by bdawes at, gregod at, cpdaniel at, john at