-
Notifications
You must be signed in to change notification settings - Fork 872
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
exists old namespace #186
Comments
BTW, |
I think that they should be type::nil and type::make_define... msgpack::type::tuple should be type::tuple. The reason those codes are commented out, the original codes are commented out. I don't know why, but I just keep the original code. |
Thanks for rapid reply. But MSGPACK_DEFINE is a MACRO.I think that it's difficult to use type::make_define.
Do we have to use MSGPACK_API_VERSION_NAMESPACE when using MSGPACK_DEFINE? |
Ah, sorry. |
Ah, I remembered my decision. I think that it is a reasonable design choice.
See: #include <sstream>
#include <msgpack.hpp>
struct S {
int i;
MSGPACK_DEFINE(i);
};
int main() {
std::stringstream ss;
S s;
msgpack::pack(ss, s);
assert(msgpack::unpack(ss.str().data(), ss.str().size()).get().as<S>().i == s.i);
} |
Thanks, this was my mistake.I'm sorry for troubling you. |
msgpack::type exists in some files.
But commented out.any intended?
The text was updated successfully, but these errors were encountered: