2

when trying to broad cast an element with boost_tuple using boost mpi:

broadcast(world,J,0);

I have the error:

/usr/local/include/boost/serialization/access.hpp:118:9: error: 'class boost::tuples::tuple<int, int, int, int, int>' has no member named 'serialize'
         t.serialize(ar, file_version);

What could I do? Thank you.

Bartek Banachewicz
  • 37,611
  • 7
  • 90
  • 133
wasabi123
  • 163
  • 1
  • 12

1 Answers1

2

You can do the analogous to Does boost support serialization of c++11's std::tuple?

Alternatively, use c++14 std::index_sequence with c++17's generalized fold expressions.

Community
  • 1
  • 1
sehe
  • 350,152
  • 45
  • 431
  • 590
  • Can you give a concrete example? I tried doing the analogous of what is done for `std::tuple` but I do not find it easy, I am getting compilation errors. – Nisba Sep 01 '18 at 13:23