Boost logo

Boost :

From: loufoque (mathias.gaunard_at_[hidden])
Date: 2006-07-21 11:51:26


Dave Dribin wrote :

> Sometimes these things use unions.
> It's not necessarily an old C feature.

Have you looked at boost.variant ?
It allows similar semantic functionality.

> What's ugly?

It's an illegimate use of a factory.
According to the RAII idiom, the resource should be acquired through its
constructor.

However I admit I don't know how it fits with (un)serialization of
binary files.


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk