Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C++ (http://www.velocityreviews.com/forums/f39-c.html)
-   -   Re: Detecting static or non-static member function? (http://www.velocityreviews.com/forums/t267632-re-detecting-static-or-non-static-member-function.html)

Victor Bazarov 06-23-2003 09:29 PM

Re: Detecting static or non-static member function?
 
"A. Schroeder" <ascscr@gmx.de> wrote...
> yes I know it is a very silly question, but can I have a mechanism that
> uses implementation A if used in a static member function, and
> implementation B if it is a non-static member function?
>
> Meaning if I have
>
> class Example
> {
> static void foo()
> {
> XXX;
> }
>
> void bar()
> {
> XXX;
> }
> };
>
> is there some expression XXX that is same in both functions, legal,
> but evaluates to something different?


Can't think of anything at the moment, but have a question: why do
you think you need that?

Victor




All times are GMT. The time now is 12:09 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.