![]() |
От: |
Юнусов Булат
|
|
Дата: | 15.09.02 12:57 | ||
Оценка: | 11 (1) |
struct FOO
{
static int& GetRefCount() {
static int refCount = 0;
return refCount;
}
FOO() {
GetRefCount()++;
}
~FOO() {
GetRefCount()--;
}
};