Boost logo

Boost Users :

From: Cromwell Enage (sponage_at_[hidden])
Date: 2005-09-17 19:06:11


--- Hossein Haeri <powerprogman_at_[hidden]> wrote:
> 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<char,'h','e','l','l','o','w','o','r','l','d'>
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<>.

> 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


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net