From: Snaury <sn...@gm...> - 2005-06-16 08:41:39
|
On 6/16/05, Foster, Gareth <gar...@si...> wrote: > > Now, when I add obvious void to somemethod, both gcc (3.4.2 > > mingw-special) and cl (version 13.10.3052) are compiling this code > > with no problems. Maybe the snippet you provided is incomplete? > You were exactly right to add the return, as I explained in a reply to > another post on this, I only inteded the code as a quick example. > > That aside, it appears that code compiles fine under g++ and newer > incarnations of vc ++ from what you have said? Can I safely assume that t= his > is then legal c++ and put it down to yet another vc++ quirk do you think? Hmm. I'm not sure. You can try something like this: [...] typedef something* psomething; class example { public: psomething m_p_something; void somemethod() { psomething p_something(m_p_something); } }; [...] And see if vc++ compiles that... |