Boost logo

Boost Users :

From: Paul Mensonides (yg-boost-users_at_[hidden])
Date: 2003-05-02 14:12:12


Eric Robert wrote:
> Hi,
>
> I think the preprocessor library could help me here but I'm having
> problems understanding it. Maybe someone will be so kind to explain it
> to me a bit.
> Here is what I want to produce:
>
> void foo(char);
> void foo(int);
> void foo(unsigned int);
> ....
>
> You got the idea. Something that repeats a list of things i.e. here,
> types.
> How can I do that?
>
> Thanks!
> Eric

The best way to do it depends on the scope (i.e. size) of what you want to
repeat. Doing something like the above is pretty easy in a variety of different
ways, but I'm guessing that you want to do something more complicated.

Regards,
Paul Mensonides


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