[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: Strange problem with msvc in kdepimlibs/kcal
From: Alexander Petrov <zowers () gmail ! com>
Date: 2006-07-21 22:42:01
Message-ID: 200607220242.07647.zowers () gmail ! com
[Download RAW message or body]
Hi, there
On 21 July 2006 10:05 Christian Ehrlicher wrote:
> The output with gcc:
> D - Recurrence::Observer::Observer()
> and msvc:
> A - RecurrenceRule::Observer::Observer
>
> As you can see, different constructors are called.
> In my understanding, both of them are correct. But I don't know what the
> c++ standard says about such an ambiguity.
Recurrence::Observer class name hides inherited
RecurrenceRule::Observer::Observer() name, so gcc is definetly right and msvc
is wrong.
> Any ideas how this could be solved without renaming one of the classes?
try virtual inheritance
> Christian
--
BR. Alexander 'zowers' Petrov. jabber:zowers@jabber.ru icq:69694782
http://zowers.googlepages.com/ mailto:zowers@gmail.com
[Attachment #3 (application/pgp-signature)]
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic