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

@@ -15,11 +15,12 @@
// limitations under the License.
//
#include <msgpack_fwd.hpp>
#include <sstream>
#include <iostream>
#include <cassert>
#include <msgpack.hpp>
enum my_enum {
elem1,
elem2,
@@ -28,8 +29,6 @@ enum my_enum {
MSGPACK_ADD_ENUM(my_enum);
#include <msgpack.hpp>
int main(void)
{
{ // pack, unpack