|
Boost : |
From: Arkadiy Vertleyb (vertleyb_at_[hidden])
Date: 2006-01-27 15:34:43
"Arkadiy Vertleyb" <vertleyb_at_[hidden]> wrote
> "Tobias Schwinger" <tschwinger_at_[hidden]> wrote
>
> > [discussing approach with the function type...]
>
OTOH, I just thought of something really trivial... If one wants to pass an
arbitrary text to a macro, he can just wrap it into another macro can't he:
#define DEF_SPEC(Name, Spec)\
template<>\
class encode<Name< Spec > >\
{};
DEF_SPEC(set, P0)
#define SPEC P0, less<P0>, allocator<P0>
DEF_SPEC(set, SPEC)
Results in:
template<> class encode<set< P0 > > {};
template<> class encode<set< P0, less<P0>, allocator<P0> > > {};
?
Regards,
Arkadiy
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk