Skip to content

Broadcast Boost.JSON objects #158

Description

@Arsennnic

Hi, I wonder how to broadcast Boost.JSON objects with Boost.MPI library. I tried

#include <boost/json.hpp>
#include <boost/mpi/collectives.hpp>
#include <boost/mpi/communicator.hpp>
#include <boost/mpi/environment.hpp>

int main( int argc, char* argv[] )
{
    boost::mpi::environment env( argc, argv );
    boost::mpi::communicator world;
    boost::json::object json;
    boost::mpi::broadcast( world, json, 0 );
    return 0;
}

and got the error 'class boost::json::object' has no member named 'serialize'.

I guess I missed some headers like <boost/serialization/string.hpp> or <boost/serialization/vector.hpp>, but I don't know which ones should be included.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions