Takatoshi Kondo
b76c8aeb83
Merge pull request #384 from jpetso/jpetso_refwrap
...
Support to-object conversions for std::reference_wrapper<const T>.
2015-11-13 10:23:44 +09:00
Jakob Petsovits
b5599ef3fc
Support to-object conversions for std::reference_wrapper<const T>.
...
Previously the conversion would fail because struct object is not
generally provided for the const version of the type, but because
the wrapper would pass down the type unchanged, it would look for
exactly that missing template specialization unsuccessfully.
This is specifically an issue for std::reference_wrapper because
std::cref() returns an std::reference_wrapper<const T>.
2015-11-11 19:40:22 -05:00
Takatoshi Kondo
1a7aa5e5ec
Merge pull request #383 from bpay/vs2015-cpp11
...
Fix VS2015 still using C++03 API
2015-11-10 22:33:46 +09:00
Ben Payne
aad5b96083
Fix VS2015 still using C++03 API
2015-11-08 15:58:55 -05:00
Takatoshi Kondo
dea3190d36
Merge pull request #381 from mogemimi/fix-minor-typo
...
Fix minor typos
2015-11-07 20:41:58 +09:00
mogemimi
c001a52582
Fix minor typos
2015-11-07 15:47:11 +09:00
Takatoshi Kondo
f58eb11fd5
Merge pull request #380 from whoshuu/expand-buffer-tests
...
Add tests for expanding an unpacker buffer
2015-11-01 12:02:01 +09:00
Takatoshi Kondo
134beee0cd
Merge pull request #379 from whoshuu/increase-unpack-coverage
...
Add coverage for all free unpack codepaths
2015-10-28 11:10:13 +09:00
Huu Nguyen
434dae8424
Add tests for expanding an unpacker buffer
2015-10-26 23:08:43 -04:00
Huu Nguyen
d8dd77884b
Add coverage for all free unpack codepaths
2015-10-26 21:27:11 -04:00
Takatoshi Kondo
ea991d5a01
Merge pull request #378 from whoshuu/add-nil-pack-test
...
Add test for packing/unpacking nil
2015-10-25 19:06:50 +09:00
Huu Nguyen
6a127eb24f
Add test for packing/unpacking nil
2015-10-23 08:49:06 -07:00
Takatoshi Kondo
5e57dc5da7
Merge pull request #376 from tbeu/patch-1
...
Only set MSGPACK_DLLEXPORT if not already defined
2015-10-20 12:50:51 +09:00
Takatoshi Kondo
d23a649427
Merge pull request #375 from whoshuu/test-parse-error
...
Write test case for parse error when unpacking unused 0xc1
2015-10-20 12:50:09 +09:00
tbeu
12ae60fd77
Only set MSGPACK_DLLEXPORT if not already defined
...
Allow applications that inlcude msgpack.h to predefine MSGPACK_DLLEXPORT, e.g., to not export any symbols in case of MSVC.
2015-10-18 22:55:32 +02:00
Huu Nguyen
282b0b5927
Write test case for parse error when unpacking unused 0xc1
2015-10-18 15:14:38 -04:00
Takatoshi Kondo
0a261fca42
Merge pull request #373 from redboltz/add_ref_wrapper
...
Added std::reference_wrapper packing and making object and object_wit…
2015-10-15 11:02:47 +09:00
Takatoshi Kondo
20104301f3
Added convert adaptor support.
2015-10-11 12:16:34 +09:00
Takatoshi Kondo
428780db53
Added std::reference_wrapper packing and making object and object_with_zone support.
...
Fixed #370 .
2015-10-09 15:45:29 +09:00
Takatoshi Kondo
6bf5160bf2
Merge branch 'spatz-patch-4'
2015-09-10 22:12:11 +09:00
Takatoshi Kondo
ef45359d81
Fix warning with -Wconversion at pack_v4raw().
2015-09-10 22:11:52 +09:00
Dror Levin
3202bb6a2e
Fix warning with -Wconversion
2015-09-06 13:07:40 +03:00
Nobuyuki Kubota
63971da5a4
Merge pull request #364 from redboltz/1_2_0_rel
...
Updated version. Appended CHANGELOG.
cpp-1.2.0
2015-09-04 19:34:00 +09:00
Takatoshi Kondo
8a17e7f647
Updated version in README.md
2015-09-04 19:36:46 +09:00
Takatoshi Kondo
69607f4117
Updated version. Appended CHANGELOG.
2015-09-04 19:32:01 +09:00
Takatoshi Kondo
e5948a3450
Merge pull request #363 from nobu-k/add-missing-files
...
Add missing files to Makefile.am
2015-09-04 19:27:04 +09:00
Nobuyuki Kubota
3fc061b5fd
Add unsigned adaptors to CMakeLists.txt
2015-09-04 19:26:08 +09:00
Nobuyuki Kubota
2b38389f68
Add missing files to Makefile.am
2015-09-04 19:18:23 +09:00
Takatoshi Kondo
9e4dfb2484
Merge pull request #362 from nobu-k/osx-warning-fix
...
Fix some warnings on OS X
2015-09-04 19:07:32 +09:00
Nobuyuki Kubota
356a5ea42d
Fix some warnings on OS X
2015-09-04 18:51:53 +09:00
Nobuyuki Kubota
93142323f0
Merge pull request #349 from redboltz/variant
...
Variant
2015-09-04 18:42:47 +09:00
Nobuyuki Kubota
3352b2f029
Merge pull request #359 from redboltz/fix_243
...
Fixed #243 .
2015-09-04 18:34:19 +09:00
Takatoshi Kondo
364658ea99
Merge pull request #360 from redboltz/fixed_warnings_on_release_build
...
Fixed warnings on build with CMAKE_BUILD_TYPE=Release.
2015-09-04 18:21:39 +09:00
Takatoshi Kondo
50088365df
Merge pull request #361 from redboltz/fix_make_dist
...
Fixed 'make dist'.
2015-09-04 17:21:12 +09:00
Takatoshi Kondo
d640395765
Fixed 'make dist'.
2015-09-04 15:42:13 +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
9b156823ff
Merge pull request #358 from redboltz/fix_357
...
Fixed #357 .
2015-09-01 08:35:11 +09:00
Takatoshi Kondo
dc2e1a4ead
Fixed indent style.
2015-08-31 16:45:01 +09:00
Takatoshi Kondo
96f145812f
Fixed #243 .
...
std::vector<unsigned char> and std::array<unsigned char> are mapped to BIN.
std::vector<uint8_t> and std::array<uint8_t> are mapped to BIN if uint8_t is the same type of unsigned char, otherwise mapped to ARRAY.
Added array_ref. When client wraps BIN mapped types above with array_ref as msgpack::type::array_ref<std::vector<char> >, the type is mapped to ARRAY.
2015-08-31 14:06:39 +09:00
Takatoshi Kondo
33de24239a
Fixed #357 .
...
Added a conversion member function to msgpack::object.
If msgpack::object is nil then returns false else returns true and sets a value.
2015-08-31 09:05:09 +09:00
Takatoshi Kondo
d17c70cbb0
Added whitespaces at inheritance.
2015-08-30 19:17:19 +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
df5f84d49d
Added totally ordered.
2015-08-30 13:08:00 +09:00
Takatoshi Kondo
0609347d82
Fixed typo.
...
Removed function stype casts for strings.
2015-08-30 12:28:53 +09:00
Takatoshi Kondo
61eb4b1f6e
Replaced boost::variant typedef with a class inheriting boost::variant.
...
Added char const* to std::string conversion constructor.
Added integer familiy constructor. int64_t is only used when an actual value is negative.
Clients no longer need to use casts for std::string and ingeter family.
2015-08-30 12:28:30 +09:00
Takatoshi Kondo
9ee1168cc4
Merge pull request #354 from redboltz/fix_348
...
Fixed #348 .
2015-08-26 16:14:55 +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
Takatoshi Kondo
a0b7e7cc27
Merge pull request #353 from jonitis/feature_sbuffer_move_semantics
...
Add move semantics to sbuffer in c++11 mode
2015-08-19 18:15:17 +09:00
Takatoshi Kondo
92822996e2
Fixed #348 .
...
The parameter 'offset' of unpack() function family, not unpacker family, updates only when the function successfully finished.
The parameter 'offset' used to update even if a caller passes insufficient bytes to the unpack() function family.
2015-08-19 10:52:08 +09:00
Dainis Jonitis
e9eac32238
Fix member initialization order
2015-08-18 17:32:45 +03:00