diff --git a/Home.md b/Home.md index 93c7f2a..4490691 100644 --- a/Home.md +++ b/Home.md @@ -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 diff --git a/v1_0_cpp_adaptor.md b/v1_0_cpp_adaptor.md index 8f32b60..8a529ce 100644 --- a/v1_0_cpp_adaptor.md +++ b/v1_0_cpp_adaptor.md @@ -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). diff --git a/v1_0_cpp_packer.md b/v1_0_cpp_packer.md index 70b7055..4068128 100644 --- a/v1_0_cpp_packer.md +++ b/v1_0_cpp_packer.md @@ -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). diff --git a/v1_0_cpp_unpacker.md b/v1_0_cpp_unpacker.md index 9c2a708..89bc27a 100644 --- a/v1_0_cpp_unpacker.md +++ b/v1_0_cpp_unpacker.md @@ -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 diff --git a/v1_0_cpp_versioning.md b/v1_0_cpp_versioning.md index eaeb944..49074af 100644 --- a/v1_0_cpp_versioning.md +++ b/v1_0_cpp_versioning.md @@ -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