Takatoshi Kondo
c704d4bfab
Added new example.
2017-01-09 16:18:35 +09:00
Takatoshi Kondo
4466bda819
Updated travis-ci.
...
Use container based build `sudo: false`.
2017-01-07 01:20:22 +09:00
pmalhaire
dc8c253577
fix msvc warning
2016-11-30 10:30:26 +01:00
pmalhaire
9c77a0f24a
Adding an example of sax like parser using buffered content (could be a socket)
2016-11-30 10:28:57 +01:00
Takatoshi Kondo
73af452ed8
Fixed #507 .
...
Removed -Wno-mismatched-tags option from g++.
g++ doesn't support the option and doesn't care the mismatch originally.
2016-07-29 19:49:53 +09:00
Stefan Mititelu
4fa661a63d
Add msgpack_object_print_buffer() function
...
In order to print the msgpack object in a memory buffer.
2016-07-07 22:43:48 +03:00
Yusuke Sasaki
b4c4c213b1
Add missing platform detection in examples/test
2016-06-18 03:38:42 +09:00
Takatoshi Kondo
4ee616bbde
Removed autotools and msvc files.
...
Please use cmake.
2016-06-05 21:54:59 +09:00
Takatoshi Kondo
22613d4dd0
Merge pull request #464 from redboltz/fix_463
...
Fixed #463 .
2016-05-24 08:22:50 +09:00
Takatoshi Kondo
e6f82cf2bb
Fixed #463 .
...
Added lacked include files.
Added a test.
Added MSVC build settings on appveyor.
Added old MSVC workaround.
Fixed a variable definition point to meet ANSI-C.
2016-05-14 22:05:10 +09:00
Takatoshi Kondo
d5b515899c
Added a visitor version of unpack API,
...
The current unpacking APIs are constructed on the visitor mechanism.
(Fixed #418 )
Updated test condition.
2016-05-01 21:44:03 +09:00
Takatoshi Kondo
31a06a0682
Removed obsolete APIs form v2.
...
Removed MSGPACK_DISABLE_LEGACY_CONVERT from v2. Those APIs are removed
from v2.
2016-03-25 09:16:27 +09:00
Takatoshi Kondo
1bfcf55469
Replaced msgpack::unpacked with msgpack::object_handle.
...
msgpack::unpacked is a typedef of the msgpack::object_handle.
I recommend using msgpack::object_handle. It can be used not only
holding unpacked msgpack objects but also msgpack::objects that are
created by any types.
Replaced unpack() APIs in test codes and examples. They used to use old
APIs.
2016-03-21 15:22:50 +09:00
Takatoshi Kondo
3c271892e3
Fixed #399
...
If MSGPACK_DISABLE_LEGACY_CONVERT is defined, msgpack::object::convert(T*) is removed.
Added MSGPACK_DISABLE_LEGACY_CONVERT to build system and documents.
Please define MSGPACK_DISABLE_LEGACY_CONVERT and update your code as follows:
Replace
int i;
obj.convert(&i); // Removed pointer version
with
int i;
obj.convert(i); // Reference version
2016-01-21 22:28:53 +09:00
Takatoshi Kondo
c2f523e463
Merge branch 'fix_382' of https://github.com/redboltz/msgpack-c into redboltz-fix_382
2016-01-15 12:44:40 +09:00
Takatoshi Kondo
c06d4d70ef
Fixed #395
...
libmsgpack.[a|so] is the library file for C++.
libmsgpackc.[a|so] is the library file for C.
Since version 1.0.0, the C++ parts of msgpack-c is a header only
library. So libmsgpack.* shouldn't be generated.
On the autotools building environment, removed libmsgpack.*
generation. On the cmake building environment, replaced libmsgpack.*
with libmsgpackc.* and set so-version to 2.0.0.
2016-01-14 07:59:37 +09:00
Takatoshi Kondo
ba15089d86
Version 1.3.0.
...
Updated the license from the license from the Apache License Version 2.0
to the Boost Software License, Version 1.0.
Removed unused files.
2015-11-21 12:41:46 +09:00
Takatoshi Kondo
39e7856c48
Fixed #382 .
...
Fixed warnings on gcc 4.1.2.
Added gcc version checking for adding -std=c++03 flag.
2015-11-12 00:20:21 +09:00
Nobuyuki Kubota
93142323f0
Merge pull request #349 from redboltz/variant
...
Variant
2015-09-04 18:42:47 +09:00
Takatoshi Kondo
be0f8c280a
Fixed warnings on build with CMAKE_BUILD_TYPE=Release.
...
Added stream outputs to suppress warnings and to help understanding.
2015-09-01 11:06:29 +09:00
Takatoshi Kondo
88ab7b6349
Unified variant and variant_ref to basic_variant.
...
Added is_* and as_* member functions to basic_variant.
Added tests.
2015-08-30 17:05:04 +09:00
Takatoshi Kondo
0609347d82
Fixed typo.
...
Removed function stype casts for strings.
2015-08-30 12:28:53 +09:00
Takatoshi Kondo
95e0fc5cef
Merge pull request #344 from n1tehawk/contrib
...
refactor example/c/lib_buffer_unpack.c
2015-08-26 16:14:23 +09:00
NiteHawk
720c18bcf8
add missing msgpack_unpacker_free(), and a "clean" assertion avoiding side effects
2015-08-18 12:24:16 +02:00
Takatoshi Kondo
23a040f2e5
Fixed std::map::erase is ambiguous problem in osx, clang, libc++ combination.
2015-08-18 18:15:10 +09:00
Takatoshi Kondo
cd9d6c5940
Added msgpack::type::variant and msgpack::type::variant_ref that is based on boost::variant.
...
You can convert to those types from any msgpack objects.
2015-08-18 17:47:27 +09:00
Takatoshi Kondo
8cae20ffc4
-std=c++11 and -std=c++03 flags shouldn't be given in indivitual CMakeLists.txt.
...
cpp03 examples should be compiled both -std=c++03 and -std=c++11.
2015-08-18 13:52:02 +09:00
NiteHawk
1788d6ce01
amend pull request ( #344 ) following the related discussion
...
There's a small problem remaining if assertions are disabled (with -DNDEBUG).
2015-08-17 21:49:03 +02:00
NiteHawk
871a796037
fix: remove unused variable introduced by previous commit
2015-08-17 16:23:11 +02:00
NiteHawk
4e65bc35ed
refactor example/c/lib_buffer_unpack.c
...
The example has some duplicated code that somewhat distracts from
the main processing loop. I think placing this into a separate
function improves readability of the code.
2015-08-17 15:59:19 +02:00
Takatoshi Kondo
8eadc04d37
Merge remote-tracking branch 'boltz/msvc2015_cpp11' into jonitis-feature_vs2015_support
2015-08-14 21:29:31 +09:00
Takatoshi Kondo
11f2f333c6
Supported C++11 mode on MSVC2015.
2015-08-14 17:02:43 +09:00
Takatoshi Kondo
5da1abb1ce
Added byte stream dump.
2015-08-13 13:23:23 +09:00
Takatoshi Kondo
efc27e8eb4
Fixed the bug that map examples don't use MSGPACK_DEFINE_MAP.
...
Removed MSGPACK_USE_BOOST requirement from map based serialization.
2015-08-13 13:23:09 +09:00
Takatoshi Kondo
12b5a6235a
Added examples to cmake building process.
...
Set /WX flas that is warnings as errors on MSVC build.
Updated linux, osx, msvc build to refer to appropriate boost libraries.
2015-08-12 17:49:33 +09:00
Takatoshi Kondo
4b2b3a18df
Added Boost.Preprocessor as a submodule.
...
Replaced boost/ with msgpack/ and BOOST with MSGPACK in Boost.Preprocessor files.
Renamed existing macron in versioning.hpp to avoid confict with MSGPACK_PP_*.
Removed MSGPACK_USE_BOOST requirement from MSGPACK_DEFINE_MAP.
2015-08-11 16:32:24 +09:00
Takatoshi Kondo
fa7f840427
Added map based packing and converting example.
2015-07-07 09:55:45 +09:00
Takatoshi Kondo
f1504d851a
Added an example of the non default constructible class.
...
Refined an intrusive example. It includes base class serialization. We can switch map based and array based serialization.
2015-07-06 16:01:36 +09:00
Takatoshi Kondo
721700bfe5
Added the new protocol example.
2015-04-06 10:30:43 +09:00
Takatoshi Kondo
35483b95ae
Refined examples.
2015-04-02 18:24:19 +09:00
Takatoshi Kondo
a2c8154960
Updated examples to support new packing/converting mechanism.
2015-04-02 18:24:10 +09:00
tbeu
8921f9dcfc
Do not interleave code and declarations in C files
...
Avoid C99 style to interleave code and declarations in order to compile msgpackc with Visual Studion < 2013
2015-03-26 21:48:03 +01:00
Takatoshi Kondo
3662a17e81
Merge pull request #212 from redboltz/add_zone_reuse_example
...
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:52:09 +09:00
Takatoshi Kondo
9ed4e443fb
Added an unpacking msgpack::object on an existing zone example.
2015-02-03 21:20:34 +09:00
Takatoshi Kondo
15aec0493d
Added a C++11 container example.
2015-02-03 20:40:44 +09:00
Takatoshi Kondo
83fac26762
Added enum examples.
...
Added converting to zone with or without zone.
2015-02-01 22:10:13 +09:00
Takatoshi Kondo
213ba44b65
Added copylight text.
...
Refined examples.
2015-02-01 21:35:48 +09:00
Nobuyuki Kubota
7eb3d2aa59
Change the type of the return value to a const reference
2014-11-15 17:41:43 -08:00
Takatoshi Kondo
e00b299fe0
Refined the non-intrusive example. The target class no longer needs public data members.
2014-11-01 22:42:36 +09:00
Takatoshi Kondo
79e7a9810c
Moved examples.
...
Added intrusive and non-intrusive versions of packing and unpacking examples.
2014-11-01 18:13:52 +09:00