
27 Jan
2006
27 Jan
'06
8:34 p.m.
"Arkadiy Vertleyb" <vertleyb@hotmail.com> wrote
"Tobias Schwinger" <tschwinger@neoscientists.org> 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