David wrote:
> 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 ;)

David,

If you read the rest of that post, I already mentioned it works fine 
under VS 2005.

And I've been waiting for Orcas - it was _supposed_ to be released this 
year, but then Microsoft pushed back the release date.  So, yeah, I know 
I need to upgrade, but it is kind of pointless to do so at this point. 
Since I've waited this long, might as well wait a bit longer.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/



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/
 

Reply via email to