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
  • 38,596
  • 7
  • 91
  • 135
wasabi123
  • 173
  • 1
  • 13

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
  • 374,641
  • 47
  • 450
  • 633
  • 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