|
|
От: |
_Winnie
|
C++.freerun |
| Дата: | 01.09.05 14:00 | ||
| Оценка: | |||
template <class Derived>
class Base1
{
public:
Base()
{
static_cast<Derived*>(this)->type_tag = 1;
}
};
class Derived: public Base<Derived>
{
public:
int type_tag;
};