07/03/11 13:17:40
こんな感じで基底クラスのoperaotr =を呼べばいい。
class Base
{
public:
Base& operator =(const Base&);
};
class Derived : public Base
{
public:
Derived& operator =(const Derived&);
};
Derived& Derived::operator =(cosnt Derived& d)
{
Base::operator =(d);
//以下Drived分のコピー処理
}