|
|
От: |
srggal
|
|
| Дата: | 19.12.05 14:20 | ||
| Оценка: | |||
// test2.cpp
struct B {};
struct D : private B {};
void f (B*);
void f (D*);
struct S {
operator B* () { return 0; }
operator D* () const { return 0; }
};
void foo(S & s)
{
f(s);
}