Files
msgpack-msgpack-c/include/msgpack
Takatoshi Kondo c4fb47c00d Fixed #204, #202.
enum support had been incomplete.
This fix made enum support complete.

Replaced int with auto on c++11 scoped enum.
Replaced template specializations with function overloads on operator<< and operator>> for enum.

enum can convert to object with and without zone.

When you want to adapt enum, you need to write as follows:

// NOT msgpack.hpp

enum yourenum {
    elem
};

MSGPACK_ADD_ENUM(yourenum);

// msgpack.hpp should be included after MSGPACK_ADD_ENUM(...)

int main() {
    msgpack::object obj(yourenum::elem);
}
2015-01-31 22:19:31 +09:00
..
2015-01-31 22:19:31 +09:00
2014-07-12 00:17:31 +09:00
2014-07-07 16:31:29 +09:00
2015-01-16 00:20:43 +09:00
2015-01-16 00:20:43 +09:00
2015-01-16 00:20:43 +09:00
2014-07-07 16:31:29 +09:00
2014-09-08 12:11:38 -03:00
2015-01-15 20:42:33 +09:00
2014-08-06 16:18:37 +09:00
2014-11-02 20:16:20 +09:00
2015-01-16 00:20:43 +09:00
2014-09-02 18:15:58 +09:00
2014-11-02 20:16:20 +09:00
2014-11-02 20:16:20 +09:00
2014-07-12 00:17:31 +09:00
2014-07-12 00:17:31 +09:00