views:

114

answers:

0

I want to send my Array class using boost Mpi

template<class T>
class Array
{
 private:
  int size;
  T* data;
 public:
  // constructors + other stuff
};

Here T can be any built in type or user defined type. Suppose I have a class complex

struct complex
{
 std::vector<double> real_imag; // contain two elements
};

So the question is how can I send Array<complex> using Boost::Mpi + serialization.

Thanks in anticipation Regards Noman