Skip to content

Instantly share code, notes, and snippets.

@AntonBikineev
Created October 1, 2015 19:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AntonBikineev/261c45a89c1f6b6bdd9d to your computer and use it in GitHub Desktop.
Save AntonBikineev/261c45a89c1f6b6bdd9d to your computer and use it in GitHub Desktop.
#include <hpx/util/tuple.hpp>
#include <hpx/runtime/serialization/serialize.hpp>
#include <hpx/runtime/naming/name.hpp>
int main()
{
std::vector<char> buf;
{
hpx::serialization::output_archive oar{buf};
hpx::util::tuple<hpx::naming::gid_type> tuple =
hpx::util::make_tuple(hpx::naming::gid_type(2u));
oar << tuple;
}
{
hpx::serialization::input_archive iar{buf};
hpx::util::tuple<hpx::naming::gid_type> tuple ;
iar >> tuple;
}
std::cout << "okay" << std::endl;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment