
14 Oct
2009
14 Oct
'09
10:18 p.m.
I'm going to take a guess. Of course, this is all contingent on whether T is a class that contains a destructor, otherwise all bets are off. -Sid Sacek struct XYZ { int i; }; struct T { XYZ xyz; ~T() {} }; void foo( void ) { T * tp = new T[ 100 ]; size_t array_size = reinterpret_cast< size_t * >( tp )[ -1 ]; }