-
Notifications
You must be signed in to change notification settings - Fork 918
Closed
Description
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
Labels
No labels