Skip to content

Commit 210d3ce

Browse files
committed
Updated readme.
1 parent a350e07 commit 210d3ce

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ int main(void)
9797
msgpack::type::tuple<int, bool, std::string> dst;
9898
deserialized.convert(dst);
9999
100+
// or create the new instance
101+
msgpack::type::tuple<int, bool, std::string> dst2 =
102+
deserialized.as<msgpack::type::tuple<int, bool, std::string> >();
103+
100104
return 0;
101105
}
102106
```
@@ -108,7 +112,7 @@ Usage
108112

109113
### C++ Header Only Library
110114

111-
When you use msgpack on C++03 and C++11, you can just add
115+
When you use msgpack on C++, you can just add
112116
msgpack-c/include to your include path:
113117

114118
g++ -I msgpack-c/include your_source_file.cpp
@@ -135,14 +139,18 @@ C and C++03:
135139
$ make
136140
$ sudo make install
137141

138-
If you want to setup C++11 version of msgpack instead,
142+
If you want to setup C++11 or C++17 version of msgpack instead,
139143
execute the following commands:
140144

141145
$ git clone https://github.com/msgpack/msgpack-c.git
142146
$ cd msgpack-c
143-
$ cmake -DMSGPACK_CXX11=ON .
147+
$ cmake -DMSGPACK_CXX[11|17]=ON .
144148
$ sudo make install
145149

150+
`MSGPACK_CXX[11|17]` flags are not affected to installing files. Just switching test cases. All files are installed in every settings.
151+
152+
When you use the C part of `msgpack-c`, you need to build and link the library. By default, both static/shared libraries are built. If you want to build only static library, set `BUILD_SHARED_LIBS=OFF` to cmake. If you want to build only shared library, set `BUILD_SHARED_L
153+
146154
#### GUI on Windows
147155

148156
Clone msgpack-c git repository.
@@ -170,7 +178,7 @@ the binaries:' text box.
170178

171179
### Documentation
172180

173-
You can get additional information on the
181+
You can get additional information including the tutorial on the
174182
[wiki](https://github.com/msgpack/msgpack-c/wiki).
175183

176184
Contributing

0 commit comments

Comments
 (0)