On Mon, Oct 13, 2003 at 10:18:26AM +0200, Lars Gullik Bjønnes wrote: > | I'm not so sure. Apart from the fact that I don't know what the result > | of '*var_' is when the variable is not set, I think it is always true > | that 'T()' is a perfectly valid result here. See how we use cached > | variables. > > CachedVar<int> cache_; > > Really non-usable, but has a value that should not be used. Perfect > use of optional. I am very sure.
What's the benefit of struct BufferParams::Impl { Impl(); boost::array<Bullet, 4> temp_bullets; boost::array<Bullet, 4> user_defined_bullets; ... } over struct BufferParams::Impl { Impl(); Bullet temp_bullets[4]; Bullet user_defined_bullets[4]; ... } ? Andre'