[MPL] vector_c which contains string literals

Dear MPL maniacs, AFAIK, there is no mpl::vetor_c which can hold string literals. Or is it? If not, isn't there any way to implement one? Any voluteers please? Thanks in Advance, --Hossein ___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com

--- Hossein Haeri
Dear MPL maniacs,
Yeah, that's us.
AFAIK, there is no mpl::vector_c which can hold string literals. Or is it?
MPL vectors can hold characters, e.g.:
typedef
mpl::vector_c
Any volunteers please?
Sorry, I have time only to give you this brief outline. (I'm busy trying to implement some advanced numeric metafunctions, compile-time rationals, etc.) Cromwell D. Enage __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Cromwell,
AFAIK, there is no mpl::vector_c which can hold string literals. Or is it?
MPL vectors can hold characters, e.g.:
typedef
mpl::vector_c
pseudo_string_literal_0;
Then you can nest MPL vectors, like this:
typedef mpl::vector< pseudo_string_literal_0, ... > pseudo_string_vector;
Then write an STL UnaryFunction to output the characters of each pseudo_string_literal. Finally, put it all together with mpl::for_each<>.
Yeap. But this does not fit into my needs. I need
something in which I can directly plug string
literals. Something like:
vector_c
Any volunteers please?
Sorry, I have time only to give you this brief outline. (I'm busy trying to implement some advanced numeric metafunctions, compile-time rationals, etc.)
So far even you've been so nice. Thanks! :) TTFN, --Hossein ___________________________________________________________ How much free photo storage do you get? Store your holiday snaps for FREE with Yahoo! Photos http://uk.photos.yahoo.com
participants (2)
-
Cromwell Enage
-
Hossein Haeri