Re: How to debug method resolution problem?
On 02/10/2010 11:19 PM, Pete Becker wrote:
> Yu Han wrote:
>> May be you could declare A::foo as pure virtual. But I guess you do
>> have something useful in A::foo, so you have to do something different.
>
> Not necessarily. Declaring a function pure virtual does not mean that
> you can't implement it.
>
thanks for reminding me. But what if you do want some instances of A?
A* A::foo(...) const
{ return new A; }
--
Yu Han
|