complex.hpp 340 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
#ifndef THALLIUM_COMPLEX_SERIALIZATION_H
#define THALLIUM_COMPLEX_SERIALIZATION_H

#include <complex>

namespace thallium {

template<class A, class T>
void save(A& ar, std::complex<T>& t) {
	ar & t.real();
	ar & t.imag();
}

template<class A, typename T>
void load(A& ar, std::complex<T>& t) {
	ar & t.real();
	ar & t.imag();
}

}

#endif