miyanyan
0225acf247
timespec.hpp: remove duplicated include
2025-05-16 21:48:31 +08:00
Stephen Cross
712ec2e383
Work around MSVC C++20 modules error for nested msgpack::object::with_zone
...
When packaging msgpack into a C++20 module (by #include of msgpack in the
global module fragment and then `export using ...;` for relevant names),
MSVC (VS 17.13.5) reports the following:
```
error C2504: 'msgpack::v2::object': base class undefined
```
This is apparently due to with_zone being a nested type of msgpack::object;
in order to work around this problem, with_zone is replaced with an alias
to a struct defined outside of msgpack::object.
2025-04-10 12:56:17 +01:00
Takatoshi Kondo
b41688c588
Updated the version to 7.0.0.
2024-11-02 11:10:53 +09:00
Stephan Lachnit
3788b5ba63
Revert "Merge pull request #1018 from GeorgFritze/cpp_master"
...
This reverts commit d13d933eea138215791c209456f38b8055d70cba, reversing
changes made to 05f654fd64de96fdb91d043a70de86a8f6149e9a.
2024-10-24 16:35:11 +02:00
Takatoshi Kondo
636a0130ba
Conditional include msgpack::variant.
...
It uses boost::variant. boost::variant requires boost::tyoe_index.
boost::type index has dropped C++03 support.
2024-08-06 11:21:55 +09:00
Takatoshi Kondo
ddb884e9cd
Update the version to 6.1.1.
2024-04-02 11:14:58 +09:00
Uy Ha
d812fa5edc
Fix compilation error when std::variant
has the same types
2024-04-02 01:23:25 +00:00
Takatoshi Kondo
d372a71786
Revert "Arenoros zone/optimization size/delayed malloc"
2023-11-23 18:24:47 +09:00
Arenoros
add68ff9e6
replace nullptr -> MSGPACK_NULLPTR
2023-10-02 19:52:40 +03:00
Arenoros
ede530de0a
fix build
2023-10-02 19:52:40 +03:00
Arenoros
62de80fa72
port optimizations for cpp03
2023-10-02 19:52:40 +03:00
Arenoros
f2b3f52d44
Correction of comments
2023-10-02 19:52:40 +03:00
Arenoros
035bfeb39e
fix zone::chunk_list::clear
2023-10-02 19:52:40 +03:00
Arenoros
04292fe63d
fix failed test
2023-10-02 19:52:40 +03:00
Arenoros
573ebca3d2
Optimization of msgpack::zone size on the stack and deferred memory allocation
2023-10-02 19:52:40 +03:00
hiradyazdan
e7f7b51005
modified function name 'has_as::check' to avoid ambiguity/conflicts with other libraries/engines's macro definitions (e.g. UE)
2023-08-13 18:32:33 +01:00
Takatoshi Kondo
0cc87c0a15
Updated the version to 6.1.0.
2023-07-08 13:16:38 +09:00
Takatoshi Kondo
1fb1dad6bc
Merge pull request #1076 from uyha/chrono-no-boost
...
remove dependency on boost in chrono.hpp
2023-07-06 09:11:42 +09:00
Uy Ha
4bc88d7f6f
fix indent
2023-07-04 06:56:39 +00:00
Uy Ha
35638ead37
fix style
2023-07-04 06:06:43 +00:00
Uy Ha
f09713e838
fix style
2023-07-04 06:00:22 +00:00
Uy Ha
6507243913
fix style
2023-07-04 05:30:35 +00:00
Uy Ha
f2ffcf0b08
remove dependency on boost in chrono.hpp
2023-07-03 20:05:06 +00:00
Uy Ha
211c50c755
enhance error handling, implement object_with_zone, and add more tests
2023-07-03 16:17:12 +00:00
Uy Ha
d6b2de9243
fix MSVC build
2023-07-03 14:01:56 +00:00
Uy Ha
327f3d1ad0
implement as
and pack
for std::variant
2023-07-03 13:37:37 +00:00
Takatoshi Kondo
34f8fd65bb
Fixed #1070 .
...
- msgpack::type::variant behaves as MessagePack format.
e.g.)
12.34 => double
12.0 => uint64_t
-12.34 => double
-12.0 => int64_t
- msgpack::type::variant::as_double() can be used even if interval type is
int64_t and/or uint64_t.
- msgpack::type::variant::as_*() don't return non const reference
internal value.
- fix coding style
2023-05-14 10:12:21 +09:00
Takatoshi Kondo
ec8895155c
Unify all package related names to msgpack-cxx.
...
Update the version to 6.0.0.
2023-02-28 10:52:21 +09:00
Takatoshi Kondo
cfb543401a
Update the version to 5.0.0.
2023-01-10 18:45:39 +09:00
Tinson Lai
8fac2a5ca9
Fix config for new MSVC preprocessor
2022-11-08 18:32:54 +08:00
Takatoshi Kondo
d679ba57a0
Update the version to 4.1.3.
2022-11-02 12:55:54 +09:00
Takatoshi Kondo
b051192ed6
Fixed #1037 .
...
Added MSGPACK_NO_BOOST guard for direct inclusion of chrono adaptor,
2022-11-02 09:58:36 +09:00
Takatoshi Kondo
0b9a597360
Update the version to 4.1.2.
2022-09-07 12:55:10 +09:00
Takatoshi Kondo
5eabf7189a
Fixed #1029 .
...
Removed invalid `noexcept` from zone's constructor.
2022-08-19 09:34:07 +09:00
Takatoshi Kondo
25c3947a91
Merge pull request #1011 from timblechmann/fix/make-some-headers-self-contained
...
make some headers self-contained
2022-07-10 19:55:31 +09:00
GeorgFritze
05de839b44
fix bug in pack_float and pack_double
2022-06-13 09:18:22 +02:00
GeorgFritze
d59e1d7716
update msgpack_basic test for compact double packaging
...
update pack_double and pack_float to avoid warnings
2022-06-07 09:46:39 +02:00
GeorgFritze
d5c837b612
style changes
2022-06-03 15:08:23 +02:00
GeorgFritze
3b405fcab3
Merge branch 'msgpack:cpp_master' into cpp_master
2022-06-02 10:41:36 +02:00
GeorgFritze
68acf21a8e
pack double and float in a more size efficient way
...
check also for nan and numeric limits
2022-06-02 10:40:51 +02:00
Stanislav Eismont
7bcb6aad05
fix detection of linux based os. According to https://sourceforge.net/p/predef/wiki/OperatingSystems/ 'linux' macro is obsolete, '__linux__' should be used instead. It turns out that 'linux' macro undefined when compiling project with e.g. '-std=c++11' compilation flag
2022-05-25 10:42:43 +03:00
Georg Fritze
6f0683bb46
pack double and float more size efficient
2022-05-13 13:04:17 +02:00
Tim Blechmann
8b87e62835
make some headers self-contained
...
some headers are not self-contained, as they depend on
symbols from headers which aren't included
2022-03-23 15:29:12 +08:00
Takatoshi Kondo
ff707d8fb5
Update version to 4.1.1.
2022-03-09 20:10:25 +09:00
Takatoshi Kondo
e596b6fe35
Remove chrono support on MSGPACK_NO_BOOST.
2022-03-09 12:55:17 +09:00
Takatoshi Kondo
79db041e8e
Update the version to 4.1.0.
2022-02-12 16:45:29 +09:00
Takatoshi Kondo
066d509a68
Minimall supported build without boost.
...
To remove boost dependency, `-DMSGPACK_USE_BOOST=OFF` for cmake.
By default, `-DMSGPACK_USE_BOOST` is `ON`.
NOTE: In order to build tests `-DMSGPACK_USE_BOOST=ON` is required.
For C++ compiler, the option `-DMSGPACK_NO_BOOST` is required to remove
boost.
2022-02-07 22:32:59 +09:00
John Cortell
bae76b7cf6
Further adjustment to EXT case
2021-11-09 07:23:52 -06:00
John Cortell
f543d94521
adjust based on PR feedback
2021-11-08 09:18:46 -06:00
John Cortell
9ff1b5e939
Don't send binary values to output stream
...
The stringification of a msgpack object shouldn't write the
raw bytes of a binary value. It will likely make the result
unprintable. Just print that it's a binary blob and include
the size. E.g.,
{"data":BIN(1032256)}
EXT is handled similarly but without the size. We now also
print the size.
Issue 994
2021-11-08 08:44:15 -06:00