Takatoshi Kondo
ad5da7f131
Added msgpack prefix to erb template files.
...
The files that are generated by preprocess have already have the prefix.
2015-03-11 10:35:23 +09:00
Takatoshi Kondo
0d9a21ea08
Added msgpack prefix to packer.
2015-03-08 20:49:40 +09:00
Takatoshi Kondo
f399ec8c30
Added msgpack prefix to support API versioning.
2015-03-07 22:58:45 +09:00
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
Nobuyuki Kubota
3bdf646cc6
Merge pull request #192 from redboltz/fix_issue_190
...
Fixed #190 .
2015-01-16 20:05:39 +09:00
Takatoshi Kondo
7f48ddc85e
Fixed #190 .
...
Supressed warnings on MSVC.
2015-01-15 20:42:33 +09:00
Takatoshi Kondo
fe4af1125d
Modified the default value of MSGPACK_ZONE_ALIGN from sizeof(int) to sizeof(void*).
...
On the x64 environment, sizeof(int) == 4 but pointer size is 8. The latter is suitable for the default value.
2015-01-03 10:22:58 +09:00
Takatoshi Kondo
240b02174d
Fixed zone allocate alignment problem.
2014-12-05 20:46:56 +09:00
Takatoshi Kondo
dab725624e
Made copy constructors and copy assignment operators private for classes that should be noncopyable.
2014-11-23 20:42:38 +09:00
Takatoshi Kondo
d6cc5494a9
Fixed memory size caluclation problem.
...
See https://github.com/msgpack/msgpack-c/issues/149
2014-11-01 19:41:47 +09:00
Takatoshi Kondo
b5e66150e9
Minimized header files dependency.
...
Added help comments for typical compile error.
2014-10-19 21:18:30 +09:00
Takatoshi Kondo
db8578a62b
Separated adaptor functions' definitions and declarations.
2014-10-16 11:21:26 +09:00
Takatoshi Kondo
4c00f448aa
Added a minimal forward declaration header file for pack/unpack overloading.
2014-10-01 14:33:02 +09:00
Takatoshi Kondo
3ddeb08e6e
Added API versioning.
2014-10-12 23:21:25 +09:00
Takatoshi Kondo
5896ff3746
Fixed -Wextra warnings on gcc.
2014-09-02 18:15:58 +09:00
Takatoshi Kondo
68bf4acb4b
Fixed operator>>(object const& o, various types& v) return type and value problem.
...
https://github.com/msgpack/msgpack-c/issues/105
2014-08-29 00:43:18 +09:00
Takatoshi Kondo
f969f6f39c
Replaced zone* member variable in object with zone&.
...
Added msgpack::object::with_zone tests.
Added tuples operator<<'s parameter to const.
Fixed array object::with_zone pointer and size unset problem.
Fixed forward_list object::with_zone pointer and size unset problem.
2014-08-11 13:23:27 +09:00
Takatoshi Kondo
17e696fc0d
Removed redundant memory allocation from zone.
...
Removed zone::create and zone::destroy.
We can use zone as follows:
zone z; // on stack
zone* z = new zone; // on heap
Fixed a resource leak when zone::push_finalizer(msgpack::unique_ptr<T>) is called.
2014-08-07 15:23:34 +09:00
Takatoshi Kondo
ce21ab0ebf
Fixed zone allocating functions always throw std::bad_alloc() if allocation is failed.
2014-08-06 12:16:28 +09:00
Takatoshi Kondo
b0df21295c
Untabified.
...
Adjust line break positions.
2014-07-12 00:17:31 +09:00
Takatoshi Kondo
0889e6117e
Renamed member variables name.
2014-07-11 23:37:43 +09:00
Takatoshi Kondo
bc33317b7e
Reorganized tree.
2014-07-07 16:31:29 +09:00