Updated links to source code that are point to correct version.

Takatoshi Kondo
2015-04-03 12:23:21 +09:00
parent 1e65c92581
commit da1ba5fd81
5 changed files with 12 additions and 12 deletions
+1 -1
@@ -22,7 +22,7 @@ However, it is very difficult to maintain. msgpack-c version 1.1.x removed this
## Migration 1.0.x -> 1.1.x
All you need to do is:
* replace msgpack_fwd.hpp with msgpack.hpp
* Update non-intrusive adaptation codes if you have them.
* Update [non-intrusive adaptation](v1_1_cpp_adaptor#non-intrusive-approach) codes if you have them.
## Discussion about this upgrade
+4 -4
@@ -45,7 +45,7 @@ msgpack::object type is defined as follows:
https://github.com/msgpack/msgpack/blob/master/spec.md
These adaptors are defined in the following directory:
https://github.com/msgpack/msgpack-c/tree/master/include/msgpack/adaptor
https://github.com/msgpack/msgpack-c/tree/cpp-1.0.1/include/msgpack/adaptor
## defining custom adaptors
@@ -71,11 +71,11 @@ struct your_class {
The macro MSGPACK_DEFINE provides packing, converting to msgpack object with zone, and converting to your_class from msgpack::object functionalities. your_class is packed/converted as msgpack array.
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_intrusive.cpp
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_intrusive.cpp
#### non-intrusive approach
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_non_intrusive.cpp
### enums
@@ -108,4 +108,4 @@ You need to use MSGPACK_ADD_ENUM in the global namespace. And you need to use MS
The macro MSGPACK_DEFINE provides [packing](v1_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-1.0.1/example/cpp03/enum.cpp).
+2 -2
@@ -4,7 +4,7 @@
msgpack::packer packs any data to [msgpack format](https://github.com/msgpack/msgpack/blob/master/spec.md#formats). Currently, the following formats are supported:
https://github.com/msgpack/msgpack-c/tree/master/include/msgpack/adaptor
https://github.com/msgpack/msgpack-c/tree/cpp-1.0.1/include/msgpack/adaptor
In addition, you can pack msgpack::object.
@@ -269,4 +269,4 @@ MSGPACK_ADD_ENUM(TestEnumMemberClass::TestEnumType);
After MSGPACK_ADD_ENUM() definition, you can pack the enums.
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-1.0.1/example/cpp03/enum.cpp).
+1 -1
@@ -266,7 +266,7 @@ struct depth_size_overflow : public size_overflow {
You can protect your application from malformed msgpack format data.
See https://github.com/msgpack/msgpack-c/blob/master/test/limit.cpp
See https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/test/limit.cpp
#### Memory management
+4 -4
@@ -27,9 +27,9 @@ It is used when you declare and define your custom overloads of operators.
See the following example:
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp#L15
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_non_intrusive.cpp#L28
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp#L47
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_non_intrusive.cpp#L67
### MSGPACK_API_VERSION_NAMESPACE
@@ -77,9 +77,9 @@ It is used when you declare and define your custom overloads of operators.
See the following example:
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp#L15
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_non_intrusive.cpp#L28
https://github.com/msgpack/msgpack-c/blob/master/example/cpp03/class_non_intrusive.cpp#L47
https://github.com/msgpack/msgpack-c/blob/cpp-1.0.1/example/cpp03/class_non_intrusive.cpp#L67
## Overloading operators