From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-08-04 05:55:20
Johan Råde wrote:
> How do you convert a value of type S to a value of type T,
> so that the bitpattern is preserved?
> (It is of course assumed that sizeof(S) == sizeof(T).)
With memcpy. S and T need to be PODs, of course.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk