
27 Aug
2005
27 Aug
'05
3:44 p.m.
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