Daniil Kovalev
78814311cb
Update README.md
2021-08-17 10:30:05 +03:00
Daniil Kovalev
073394cbba
Enhance CI build time
2021-08-10 01:05:53 +03:00
Daniil Kovalev
25d6f84f3c
Fix cmake to support versions 3.1 and above
...
VERSION_GREATER_EQUAL is available since cmake 3.7 only
2021-07-07 18:11:43 +03:00
Daniil Kovalev
4022c2fc00
Fix appveyor build
2021-07-04 13:25:25 +03:00
Daniil Kovalev
7b7615a6d9
Modernize codebase
...
- Enhance CMakeLists.txt files.
- Move to Boost Test from Google Test to support pre-C++11 compilers.
- Add more configurations on CI matrix builds.
- Other minor fixes
2021-07-01 18:17:20 +03:00
Daniil Kovalev
0af15e45de
Add tests for std::span adaptor
2021-05-28 15:14:47 -04:00
Daniil Kovalev
18ec42ccac
Merge branch 'cpp_master' into add_span_support
2021-05-28 21:56:17 +03:00
Takatoshi Kondo
be4d971c62
Merge pull request #957 from redboltz/fix_956
...
Fixed #956 .
2021-05-16 00:11:43 +09:00
Takatoshi Kondo
3feac1f51d
Fixed #956 .
...
Called memcpy only if STR/BIN size > 0.
2021-05-15 23:43:33 +09:00
Daniil Kovalev
2b78d50d13
Fix build with C++17 or lower
2021-05-10 22:48:19 +03:00
Daniil Kovalev
77045f13bb
Add tests for std::span adaptor
2021-05-10 22:41:10 +03:00
Daniil Kovalev
388891edad
Add support for more binary buffer types
...
Add support for the following types:
- `std::array<std::byte>`
- `std::span<char>`
- `std::span<unsigned char>`
- `std::span<std::byte>`
2021-05-10 16:06:26 +03:00
Takatoshi Kondo
fc3de9806e
Merge pull request #954 from kovdan01/fix_ub_in_v4raw
...
Fix UB in v4raw_ref::operator==
2021-05-10 21:45:57 +09:00
Takatoshi Kondo
54b2b23b25
Merge pull request #955 from kovdan01/enhance_sanitizers_on_ci
...
Set `-fno-sanitize-recover=all` compiler option
2021-05-10 21:45:03 +09:00
Daniil Kovalev
b9381f842e
Set -fno-sanitize-recover=all
compiler option
...
If sanitizer detects an error, it will lead to a non-zero exit code.
2021-05-10 15:11:41 +03:00
Daniil Kovalev
90677eb58c
Fix UB in v4raw_ref::operator==
...
Behaviour of memcmp is undefined if any of pointers passed to it is null.
See https://en.cppreference.com/w/c/string/byte/memcmp for details.
UB was detected on test MSGPACK_V4RAW_REF.pack_unpack_fix_l with UB-sanitizer.
2021-05-09 15:43:14 +03:00
Takatoshi Kondo
dfbfd927b4
Merge pull request #952 from kovdan01/fix_name_conflicts
...
Fix name conflicts (C++)
2021-05-09 16:39:58 +09:00
Daniil Kovalev
e487321ed6
Delete unsupported cmake option -v
2021-05-08 18:24:07 +03:00
Daniil Kovalev
7c7f45fbea
Install boost on Windows via vcpkg
2021-05-08 18:18:09 +03:00
Daniil Kovalev
7707c81c5d
Fix boost download URL
2021-05-08 17:55:01 +03:00
Daniil Kovalev
a66da75bd4
Fix iovec-related tests
2021-05-08 17:10:47 +03:00
Daniil Kovalev
3944993686
Fix name conflicts
...
Previously `struct iovec` was explicitly defined on non-Unix systems,
which caused name conflicts when other libraries (e.g. Cyrus SASL) did the same.
Using `struct iovec` as `msgpack::iovec` solves the problem.
2021-05-08 16:26:25 +03:00
Takatoshi Kondo
6b6a05e07c
Merge pull request #924 from VorpalBlade/feature/boost-timer-optional
...
Implement issue #923 : Make boost timer optional
2020-10-19 19:36:17 +09:00
Arvid Norlander
6c8ec25016
Fix issue with Appveyor.
2020-10-19 10:00:29 +02:00
Arvid Norlander
04726a5acf
Implement issue #923 : Make boost timer optional
2020-10-16 10:51:49 +02:00
Takatoshi Kondo
44aa90eb50
Merge pull request #919 from redboltz/fix_readme_cpp_11_17
...
Fixed misleading flag notation.
2020-10-01 18:44:09 +09:00
Takatoshi Kondo
ab36ce2654
Fixed misleading flag notation.
...
Added missing `make` command.
2020-09-29 16:32:39 +09:00
Takatoshi Kondo
780c504c44
Merge pull request #918 from ashish-billore/patch-1
...
Update README.md
2020-09-29 16:26:06 +09:00
Ashish Billore
d852e6e4fb
Update README.md
...
Minor rewording for setup instructions.
2020-09-29 15:12:13 +09:00
Takatoshi Kondo
65938a95e9
Merge pull request #916 from mkilivan/cpp_master
...
Let the compiler deduce the type
2020-09-22 22:24:53 +09:00
Murat Kilivan
b9d06fe207
Let the compiler deduce the type
...
It also provides a consistent coding style with the rest of C++11
examples.
2020-09-14 09:06:47 +01:00
Takatoshi Kondo
555cd3ff68
Merge pull request #912 from redboltz/add_boost_requirement
...
Added boost dependency to README.md.
2020-08-10 16:01:09 +09:00
Takatoshi Kondo
e88fa26f7a
Added boost dependency to README.md.
2020-08-10 13:56:15 +09:00
Takatoshi Kondo
0d203644be
Merge pull request #906 from redboltz/fix_905
...
Fixed #905 .
2020-08-07 10:31:07 +09:00
Takatoshi Kondo
d53d42a791
Added vcpkg update.
2020-08-01 11:47:33 +09:00
Takatoshi Kondo
14763a8b31
Fixed #905 .
...
Added compiler version cheking for atomic test for older compilers on cmake.
2020-08-01 08:58:36 +09:00
Takatoshi Kondo
70912ffde4
Merge pull request #898 from redboltz/refine_assert
...
Replaced assert with BOOST_ASSERT.
2020-07-03 09:09:20 +09:00
Takatoshi Kondo
6598c6228f
Replaced assert with BOOST_ASSERT.
...
Applied *buffer buf and len checking assert.
Avoided needless code execution if buf is nullptr.
2020-07-02 21:36:04 +09:00
Takatoshi Kondo
eb1e7e6e07
Merge pull request #897 from redboltz/re_enable_werror
...
Propagated CXXFLAGS.
2020-07-02 17:39:56 +09:00
Takatoshi Kondo
544978b343
Added conditional sanitize option.
2020-07-02 17:04:32 +09:00
Takatoshi Kondo
c8a053557c
Propagated CXXFLAGS.
...
Fixed warnings.
2020-07-02 16:15:08 +09:00
Takatoshi Kondo
71687c4229
Merge pull request #895 from redboltz/add_f_sanitize_undefined_to_ci
...
Added -fsanitize=undefined option to ci.
2020-07-02 15:39:25 +09:00
Takatoshi Kondo
3557e6c9f9
Added -fsanitize=undefined option to ci.
2020-07-02 14:05:28 +09:00
Takatoshi Kondo
0e22de17b1
Merge branch 'ygj6-cpp_master' into cpp_master
2020-07-02 13:58:30 +09:00
Takatoshi Kondo
b0860a5f37
Fixed ptr size operation.
2020-07-02 13:34:00 +09:00
Takatoshi Kondo
447e8dfb07
Merge pull request #894 from redboltz/fix_fusion_warning
...
Fixed warning on fusion adaptor.
2020-07-02 09:48:56 +09:00
Takatoshi Kondo
8ee6df83cc
Fixed warning on fusion adaptor.
2020-07-02 09:13:53 +09:00
Takatoshi Kondo
0168468ac8
Merge branch 'cpp_master' of https://github.com/ygj6/msgpack-c into cpp_master
2020-07-02 08:51:59 +09:00
yuangongji
ee29324fd5
check null pointer before using memcpy()
2020-07-01 20:44:15 +08:00
Takatoshi Kondo
194d1a470d
Merge pull request #893 from redboltz/fix_chrono_ub
...
Fixed undefined behavior in chrono converting.
2020-07-01 18:26:05 +09:00