Updated examples to support new packing/converting mechanism.

This commit is contained in:
Takatoshi Kondo
2015-04-02 18:24:10 +09:00
parent e8d3c8d6c5
commit a2c8154960
4 changed files with 41 additions and 56 deletions

View File

@@ -21,8 +21,7 @@
#include <sstream>
#include <cassert>
// msgpack.hpp is also ok
#include <msgpack_fwd.hpp>
#include <msgpack.hpp>
class my_class {
@@ -57,8 +56,6 @@ void print(std::string const& buf) {
std::cout << std::dec << std::endl;
}
#include <msgpack.hpp>
int main() {
{ // pack, unpack
my_class my("John Smith", 42);