![]() |
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.