Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Broadcast Boost.JSON objects #158

@Arsennnic

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.

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