mirror of
https://github.com/msgpack/msgpack-c
synced 2026-06-08 16:11:40 +00:00
Removed removed flags.
@@ -17,27 +17,6 @@ Default value: not defined
|
||||
|
||||
`msgpack::type::nil` is replaced with `msgpack::type::nil_t` to avoid conflict by [#408](https://github.com/msgpack/msgpack-c/pull/408). `nil` is defined by system on some environment. See #[368](https://github.com/msgpack/msgpack-c/pull/368) and [#406](https://github.com/msgpack/msgpack-c/pull/406). `msgpack::type::nil` is obsolete. You need to replace `msgpack::type::nil` with `msgpack::type::nil_t` in your codes. However, you might want to continue to use nil. If `MSGPACK_USE_LEGACY_NIL` is defined, `msgpack::type::nil` is defined as the typedef of `msgpack::type::nil_t`.
|
||||
|
||||
## MSGPACK_DISABLE_LEGACY_CONVERT (since 1.4.0)
|
||||
|
||||
Default value: not defined
|
||||
|
||||
`msgpack::object::convert(T*)` is removed to solve [#399](https://github.com/msgpack/msgpack-c/issues/399). You need to use `msgpack::object::convert(T&)`. If `MSGPACK_DISABLE_LEGACY_CONVERT` is NOT defined, `msgpack::object::convert(T*)` is removed. `msgpack::object::convert(T*)` is obsolete. It will be removed in the version 2.0.0. Please define `MSGPACK_DISABLE_LEGACY_CONVERT` to prepare the version 2.0.0 and update your code as follows:
|
||||
|
||||
Replace
|
||||
|
||||
```C++
|
||||
int i;
|
||||
obj.convert(&i);
|
||||
```
|
||||
|
||||
with
|
||||
|
||||
```C++
|
||||
int i;
|
||||
obj.convert(i);
|
||||
```
|
||||
|
||||
|
||||
## MSGPACK_USE_LEGACY_NAME_AS_FLOAT
|
||||
|
||||
Default value: not defined
|
||||
|
||||
+1
-5
@@ -16,19 +16,15 @@ Add msgpack-c/include as an include path for your project.
|
||||
g++ -Ipath_to_msgpack-c/include your_program.cpp
|
||||
```
|
||||
|
||||
See [MSGPACK_DISABLE_LEGACY_NIL](v2_0_cpp_configure#msgpack_disable_legacy_nil-since-140)
|
||||
|
||||
## C++11 support
|
||||
|
||||
When you set the C++11 or later compiler option, msgpack-c enables
|
||||
C++11 functionalities.
|
||||
|
||||
```
|
||||
g++ -std=c++11 -Ipath_to_msgpack-c/include -DMSGPACK_DISABLE_LEGACY_CONVERT your_program.cpp
|
||||
g++ -std=c++11 -Ipath_to_msgpack-c/include your_program.cpp
|
||||
```
|
||||
|
||||
See [MSGPACK_DISABLE_LEGACY_NIL](v2_0_cpp_configure#msgpack_disable_legacy_nil-since-140) and [MSGPACK_DISABLE_LEGACY_CONVERT](v2_0_cpp_configure#msgpack_disable_legacy_convert-since-140).
|
||||
|
||||
## Test and Install
|
||||
|
||||
### Using autotools
|
||||
|
||||
Reference in New Issue
Block a user