msgpack-c
msgpack-c copied to clipboard
Issue with nil on MacOS and C++
I'm getting an "Expected unqualified-id" error in nil_decl.hpp on the line:
typedef nil_t nil;
All I have is:
#include <msgpack.hpp>
On travis-ci https://travis-ci.org/msgpack/msgpack-c/jobs/384509443#L4 works.
What version of MacOS, msgpack-c, and compiler are you using?
As a workaround, prepend #define MSGPACK_DISABLE_LEGACY_NIL before including msgpack.hpp, or add -DMSGPACK_DISABLE_LEGACY_NIL to your compile arguments.
#define MSGPACK_DISABLE_LEGACY_NIL
#include <msgpack.hpp>