mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
Updated v2_0_cpp_adaptor (markdown)
+2
-2
@@ -319,7 +319,7 @@ struct object_with_zone<my_class> {
|
||||
} // namespace msgpack
|
||||
```
|
||||
|
||||
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp
|
||||
https://github.com/msgpack/msgpack-c/blob/cpp_master/example/cpp03/class_non_intrusive.cpp
|
||||
|
||||
When you use `msgpack::object::as` member function template in `convert` class template specilization, , temporary objects are created.
|
||||
|
||||
@@ -460,4 +460,4 @@ You need to use MSGPACK_ADD_ENUM in the global namespace.
|
||||
|
||||
The macro MSGPACK_DEFINE provides [packing](v2_0_cpp_packer#packing-enums), converting to msgpack object with or without zone, and converting to your_enum from msgpack::object functionalities. your_enum is packed/converted as msgpack positive/negative integer.
|
||||
|
||||
See an [example](https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/enum.cpp).
|
||||
See an [example](https://github.com/msgpack/msgpack-c/blob/cpp_master/example/cpp03/enum.cpp).
|
||||
Reference in New Issue
Block a user