Boost logo

Boost :

From: Eric Friedman (ebf_at_[hidden])
Date: 2003-09-01 16:29:34


Alexander Nasonov wrote:
> Eric Friedman wrote:
> > If I understand you correctly, earlier versions of variant did precisely
> > what you describe. Unfortunately, the "assumption" you make is false in
> > general. See
http://aspn.activestate.com/ASPN/Mail/Message/boost/1311813.
> >
> > Eric
>
> Well, is_polymorphic<T> based on compiler properties beyond the standrad.
> Why not optimize variant for compilers which safely memcpy forth and back?

I'm not sure how we would know... It seems to be a very bad idea to simply
guess.

Plus, for compilers where it is in fact not allowed, we still need a
workable, defined solution.

Eric


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