On Mon, Oct 13, 2003 at 10:42:56AM +0200, Lars Gullik Bjønnes wrote: > Andre Poenitz <[EMAIL PROTECTED]> writes: > > | 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 > > How nice, and this has what to do with the topic at hand?
Unneeded complication. > | struct BufferParams::Impl > | { > | Impl(); > | boost::array<Bullet, 4> temp_bullets; > | boost::array<Bullet, 4> user_defined_bullets; > | ... > | } > > > | over > > Safer, follows the STL container requirements (as close as possible). How exactly is it safer? What part of the STL container requirements is _needed_? Bullet[4] is perfectly safe to use here, and everybody knows to handle it. Andre'