Boost logo

Boost Users :

From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2005-09-10 06:00:09


Hi,

Maybe it is a naive question, but I've been researching a little and
couldnt find an answer to this(not an affirmative and nor negative):

Is it possible to have such usages:

SOME_MACRO(hello world)
or
SOME_MACRO("hello world")
(or something that doesnt have much "characters overhead", like using
space for every character)
and have the expansion result in this:
h e l l o w o r l d
or even better:
'h','e','l','l','o', ' ', 'w', 'o', 'r', 'l', 'd'

Well, what I'm trying to find is if it is possible to give something
to a macro and the macro create an vector_c with all the characters
inside it.

Like:
SOME_MACRO(Hello World)
and expand to:
boost::mpl::vector<char, 'H','e','l','l','o',' ','W','o','r','l','d'>

Thanks in advance,

-- 
   Felipe Magno de Almeida
Developer from synergy and Computer Science student from State
University of Campinas(UNICAMP).
Unicamp: http://www.ic.unicamp.br
Synergy: http://www.synergy.com.br
"There is no dark side of the moon really. Matter of fact it's all dark."

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