Boost logo

Boost :

From: Robert Ramey (ramey_at_[hidden])
Date: 2005-08-27 10:44:03

Neal Becker wrote:

> You're right! I forgot, real() and imag() have been changed to now
> return a ref (or const ref). This works with gcc-4.0.1, at least.
> Does this look
> OK? Does the ublas::vector stuff also need some nvp added?
well if imag and real return const an non-const references to T then you can
simplify things to:

namespace boost { namespace serialization {
template<class Archive, class T>
inline void serialize (Archive &ar, std::complex<T>& z, const
unsigned int file_version) {
    ar & real(z);
    ar & imag(z);

Robert Ramey

Boost list run by bdawes at, gregod at, cpdaniel at, john at