Boost logo

Boost :

Subject: [boost] [mpl] string to type conversion
From: Bartosz Marcinkiewicz (bma_at_[hidden])
Date: 2010-05-13 05:09:25


Hello,

    I would like to have a macro which could be used like this:

        STRING_TO_TYPE( MyType )
    
    which would yield:

        typedef mpl::string<'M','y','T','y','p','e'> MyType_id_t;

    Any ideas how to implement something like that?

Thanks for any help, bma.

-- 
Bartosz Marcinkiewicz
tel. (+48) 516 034 243
e-mail: bma_at_[hidden], bartosz.marcinkiewicz_at_[hidden]
EPCON Sp. z o.o.
www.epcon.pl
adres:  53-407 Wroc³aw, ul. Gajowicka 114/116
tel. (+48) 71 361 75 55 ext.36
fax (+48) 71 361 74 44
NIP PL 899-24-92-498
KRS 0000190187
REGON 932963731
Kapita³ zak³adowy: 500 000 PLN

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk