Thomas Hruska a écrit : > Paul Herring wrote: > >> On 8/31/07, Thomas Hruska <[EMAIL PROTECTED]> wrote: >> >> >>> error C2511: 'MyBase2 *MyDerived::Copy(void)' : overloaded member >>> function not found in 'MyDerived' >>> >> It appears to have something to do with the const qualifiers - >> removing the three from your example allows the code to compile. Why >> this is so, and whether it helps you I'm not too sure... >> > > Oooookay...that's even weirder. It definitely helps (i.e. it works for > now). But that seems oddly like a bug. Why would dropping 'const' > cause it to compile? I wasn't doing anything non-const in the example > that I'm aware of. And the problem only appeared when two base class > _paths_ (for lack of a better word) had a Copy() - using const was fine > when there was only one base class path. > > I just ran the original code through the Comeau C++ online compiler with > their latest alpha/beta version (4.3.9) and it compiled fine under > strict mode. > >
As with visual studio 2005 change your compiler is too old ;) To unsubscribe, send a blank message to <mailto:[EMAIL PROTECTED]>. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/c-prog/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/c-prog/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
