|
Boost : |
Subject: Re: [boost] [mpl] is_macro_called
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2010-04-05 12:15:15
AMDG
Lorenzo Caminiti wrote:
> Why would it matter if the function is compiled before or after the
> class? The preprocessor will expand the counter value to 1 after
> PP_UPDATE_COUNTER() at preprocessing time thus regardless of which
> order the preprocessed code will actually be compiled.
>
If the compiler handled the functions as they were defined, there's
a semi-portable ADL hack that would work.
> However, this approach will not work for me because the #include
> cannot be programmed within the macro. Therefore, I will have to rely
> on the macro callers to explicitly indicate if they are calling the
> macro by using the #include...
>
> Is there a way I can do this without using #instructions programmed
> outside the macro definition?
>
No there isn't.
In Christ,
Steven Watanabe
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk