Boost logo

Boost :

From: Gary Powell (powellg_at_[hidden])
Date: 2002-02-19 14:34:46

If I can get "smart references" i.e. operator.() I'd like to be
able to overload "sizeof(SmartReference<T>)" to return the
size of T, not the sizeof "SmartReference"

I think it will be necessary to determine the amount of raw memory
to allocate if you were to copy a smartReference. But
its been a long time since I tried messing with this.

At the time I was trying to solve the problem of how to you make
a proxy object behave exactly like the real object for all
users of the object.

Anyone else ever wish for this?


Boost list run by bdawes at, gregod at, cpdaniel at, john at