Andrey Tarasevich
11/28/2008 8:45:00 PM
Kaba wrote:
>
> What I'd like to do is essentially the following:
>
> E<MACRO(C<int, int>)> e;
>
> However, now the comma inside the macro is interpreted as separating
> macro parameters which results in an error. Ok, let us try to add
> parentheses:
>
> E<MACRO((C<int, int>))> e;
>
> This get's rid of the earlier error but brings another one: the
> declaration
>
> E<(C<int, int>)> e;
>
> is not legal C++.
>
> Is there a way around?
There is, but it is ugly to the point of being virtually unusable
#define ARGS C<int, int>
E<MACRO(ARGS)> e;
#undef ARGS
--
Best regards,
Andrey Tarasevich