$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-08-26 10:14:27
Neal Becker wrote:
>
> template<typename Archive, typename T>
> inline void save (Archive &ar, const std::complex<T>& z, const unsigned int)
> {
> ar << real (z);
> ar << imag (z);
> }
>
> template<typename Archive, typename T>
> inline void load (Archive &ar, std::complex<T>& z, const unsigned int) {
> T i, r;
> ar >> r;
> ar >> i;
> z = std::complex<T> (r, i);
> }
>
Shouldn't these use BOOST_SERIALIZATION_NVP so that they can be used
with xml archives as well as text and binary?
Cheers
Russell