$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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.