Skip to content

build error example #320

@molele2

Description

@molele2

I build global project for success! build example for one

include <msgpack/object.hpp>

include <msgpack/iterator.hpp>

include <msgpack/zone.hpp>

include <msgpack/pack.hpp>

include <msgpack/unpack.hpp>

include <msgpack/sbuffer.hpp>

include <msgpack/vrefbuffer.hpp>

include <msgpack/version.hpp>

include <msgpack/type.hpp>

include

include

include

int main(void){
msgpack::type::tuple<int,bool,std::string> src(1,true,"example");

std::stringstream buffer;
msgpack::pack(buffer,src);

buffer.seekg(0);
std::string str(buffer.str());
msgpack::unpacked result;
msgpack::unpack(result,str.data(),str.size());

msgpack::object deserialized = result.get();
std::cout << deserialized << std::endl;

msgpack::type::tuple<int,bool,std::string> dst;
deserialized.convert(&dst);

return 0;

}

usr/local/include/msgpack/adaptor/vector.hpp:84: error: #pragma GCC diagnostic not allowed inside functions
/usr/local/include/msgpack/adaptor/vector.hpp:85: error: #pragma GCC diagnostic not allowed inside functions
/usr/local/include/msgpack/adaptor/vector.hpp:89: error: #pragma GCC diagnostic not allowed inside functions

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