Commit Graph
968 Commits
Author SHA1 Message Date
Luca Ciucci 343473b752 Update .gitignore
`.vs/` folder is created by Visual Studio and it is not needed.
2022-03-14 13:29:59 -07:00
CHP 45e40375b6 Fix long long json serialization (#728)
* Fix long long json serialization

* Update pod.hpp
2022-03-14 13:29:42 -07:00
Shane Grant ebef1e9298 Correct patch version for 1.3.2
cereal mac ci / macos-latest-clang-xcode11 (push) Canceled after 0s
cereal mac ci / macos-latest-clang-xcode12 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-8-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-10-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-11-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-12-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-5.0-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-7-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-9-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-g++10 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++8 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-g++9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.8 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.5 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.6 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.8 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-4.0 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-5.0 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.5 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++6 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++5-multilib (push) Canceled after 0s
v1.3.2
2022-02-27 19:46:32 -08:00
Shane Grant 6e1c66a94c Add CMake options for building doc and sandbox
relates #739
2022-02-27 19:43:25 -08:00
Michael R. Crusoe 39d202053d Make doxygen docs reproducible 2022-02-27 19:28:28 -08:00
Shane Grant 1de8fe8947 Update version to 1.3.1
cereal mac ci / macos-latest-clang-xcode11 (push) Canceled after 0s
cereal mac ci / macos-latest-clang-xcode12 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-8-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-10-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-11-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-12-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-5.0-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-7-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-clang-9-cpp17 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-g++10 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++8 (push) Canceled after 0s
cereal linux ci / ubuntu-20.04-g++9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.8 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.5 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.6 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.7 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.8 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-3.9 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-4.0 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-clang-5.0 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++4.5 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++6 (push) Canceled after 0s
cereal linux ci / ubuntu-16.04-g++5-multilib (push) Canceled after 0s
v1.3.1
2022-01-16 21:54:56 -08:00
Anton Blanchard 107f8c2aa9 Use GNUInstallDirs instead of hard wiring install directories
On a multilib setup cmake files should go into lib64.
2022-01-16 20:59:04 -08:00
Shane Grant ca9aeaab27 Update doctest to 2.4.7, update CI, add badges
Updates doctest and fixes issues with g++4.7 and MSVC2013 doctest
builds.

Adds new CI targets for g++ 9 and 10, clang 9 through 12.

Adds CI badges for github actions.
2022-01-10 23:00:57 -08:00
Shane Grant 8291f44e05 Update license to match BSD template 2022-01-09 17:05:35 -08:00
Darred de953044b0 Fixed loading of std::vector<bool>
We should use auto && instead of auto if we want to modify v inside the for loop.
2022-01-09 16:13:35 -08:00
Shane Grant 408a351ce0 Update appveyor to build with MSVC 2022 and fix boost 2021-11-28 22:01:00 -08:00
Shane Grant 90ea8a98c5 Update doctest to 2.4.6 dev + local fixes slated for upstream 2021-11-28 22:01:00 -08:00
Isuru Fernando 2c5e1b792f Add github actions workflow
use docker containers
remove sudo
install software-properties-common
update before trying install
install wget
cmake and make
install cmake from pip
add apt-transport-https
Use llvm xenial
Fix clang package name
Fix boost with gcc<5
verbose compile
skip boost for gcc<5
macos test
skip boost for macos
test different xcode compilers
use new cmake syntax for selecting platform
no xcode 10 installed
Rename tests
2021-11-28 22:01:00 -08:00
Gary Heckman af0700efb2 Fix itsNextName not clearing when not found
An issue exists when loading vectors of objects where, if the last nvp of
the previous object does not exist in the json file, the itsNextName
variable within the json serializer is not cleared. This causes the vector
serializer to search for that name next (when it should be searching for a
nameless object.) The json serializer then throws during the named search.

Mild reworking of itsNextName solution
2021-09-20 18:23:34 -07:00
logan f8338dbb73 Use std::optional::emplace() when loading to construct and load the contained value directly in place 2021-09-17 11:09:39 -07:00
logan 0bbbb142f9 Use std::variant::emplace when loading 2021-09-17 11:08:43 -07:00
Shane Peelar 46a4a91007 C++17: use inline globals for StaticObjects
This prevents multiple definition errors in Clang,
and also stops dllexporting functions with internal
linkage.  Degrades gracefully when C++17 is not
present.

Fix #595
Fix #652
Fix #582
Fix #643
2021-05-05 15:26:18 -07:00
John Keeping e735cc8bc1 Catch short documents in JSON input
When reading unnamed fields from JSON input, the member/value iterators
are incremented blind without checking if the end of the iterator has
been reached.

Record the size so that this can be checked against the current position
to ensure reading doesn't walk off the end of the iterator.
2021-05-05 15:24:28 -07:00
Shane Grant 6d1c2885f2 Update README.md
Fix link to main website
2021-05-05 15:22:35 -07:00
Adam Miartus 64f50dbd5c add license files for components of cereal
Signed-off-by: Adam Miartus <adam.miartus@softhows.eu>
2021-02-01 15:51:18 -08:00
Michael Walz f27c12d491 Store a copy of each serialized shared_ptr within the archive to prevent the shared_ptr to be freed to early. (#667)
The archives use the memory address pointed by the shared_ptr as a
unique id which must not be reused during lifetime of the archive.
Therefore, the archives stores a copy of it.
This problem was also reported as CVE-2020-11105.
2021-02-01 15:50:29 -08:00
Claus Klein 48fda3f0a6 cleanup cmake files to be a little more moderen (#659)
* cleanup cmake files to be a little more moderen

keep the source tree free of build artifacts
cmakelint the cmake files too

* fix cmake setup errors on CI

fix APPLE clang builds too

* CI needs support for realy history cmake V3.6

fix typo in cmake files using add_test() commnds

* One step more to use modern cmake

Prevent to modifiy compile and linker FLAGS and to set global includes
pathes

* fix CI build problems with older cmake versions

prepare cleanup cmake list file

* final cleanup

use Config.cmake.in and install hole cmake config files

* Fix cpp17 PORTABILITY_TEST linker problem

add missed target_link_libraries()

* hopefully prevent windows test problems
2020-11-17 12:50:06 -08:00
John Alexander 562321c354 Fixes to prevent clang-diagnostic errors (#643)
* Fixes to prevent clang-diagnostic when running clang-tidy with Microsoft Visual Studio cmake projects.

* Used boolean rather than bitwise operator.
2020-10-28 09:43:22 -07:00
groscoe2 b5e17a9159 Fix rapidjson for Clang 10 (#645)
Based on Tencent/rapidjson#1679
Addresses USCiLab/cereal#631
2020-10-28 09:42:33 -07:00
Łukasz Gemborowski 3e4d1b84ca [cpp20] explicitly capture 'this' as copy (#640)
implicit 'this' capture is deprecated in C++20
2020-04-23 09:43:10 -07:00
Bernard Blackham 10d9a29c22 Fix json.hpp compilation issue when int32_t is a long (#621)
When testing whether or not to define a saveValue() overload
for long, test the actual set of types implemented.
2020-04-22 14:36:07 -07:00
Shane Grant a5a3095312 Add MSVC 2019 to build, default ctor for static object (#593)
relates #592
2019-12-29 11:07:53 -08:00
Shane Grant 075c44feef Merge pull request #597 from tankorsmash/patch-1
Fix typo in docs
2019-11-17 17:55:43 -08:00
TankorSmash 8bd726281f Fix typo in docs 2019-11-12 16:29:18 -05:00
Shane Grant 02eace19a9 Badges for travis and appveyor v1.3.0 2019-10-24 21:38:52 -07:00
Shane Grant 37b4567934 Merge branch 'develop' for release 1.3.0 2019-10-24 21:35:23 -07:00
Shane Grant 021e5da2fe Update version to 1.3.0 2019-10-24 21:20:51 -07:00
Shane Grant 49fbbed8e2 Merge branch 'update_rapidjson' into develop
see #579
2019-10-23 22:15:16 -07:00
Shane Grant 1bce4362db Add option to disable performance test build 2019-10-23 22:06:18 -07:00
Shane Grant 797239531b Remove vs2013 directory in favor of using cmake 2019-10-23 22:06:18 -07:00
Shane Grant 0db8d115bf Documentation updates 2019-10-23 22:06:18 -07:00
Shane Grant 4b466f4f80 clang warning updates for sandbox code 2019-10-23 22:06:18 -07:00
Shane Grant aafd7702bd Remove diagnostic ignore in favor of fallthrough comments 2019-10-23 22:06:18 -07:00
Shane Grant fedddc5a1b Correctly use export while forcing dynamic init
see #523
2019-10-23 22:06:18 -07:00
Shane Grant 6c7c93edfa Doctest support for g++4.7 2019-10-23 22:06:18 -07:00
Shane Grant 7fcfa29353 MSVC variant support 2019-10-23 22:06:18 -07:00
Shane Grant 6ccd33fe37 Noexcept workaround for doctest for MSVC 2019-10-23 22:06:18 -07:00
Shane Grant 33224f4660 MSVC support for doctest, boost variant serialization 2019-10-23 22:06:18 -07:00
Shane Grant 62034cbe26 Improve documentation for base_class with polymorphism
relates #441
2019-10-23 22:06:18 -07:00
Shane Grant 8195d35fbc Improve documentation of deferment
relates #185
2019-10-23 22:06:18 -07:00
Shane Grant f64864fa74 Prepare for removal of gh-pages-develop branch 2019-10-23 22:06:18 -07:00
Shane Grant 946b568bf7 Update doctest to 2.3.5
Includes a replacement for [[noreturn]] and thread_local
2019-10-23 22:06:18 -07:00
Shane Grant 0399962807 Update rapidjson to d87b698d0fcc10a5f632ecbc80a9cb2a8fa094a5 2019-10-23 22:06:18 -07:00
Shane Grant e50424c9fa Update travis ci
-Fix PPA for latest boost
-Disable performance testing for libc++ builds
2019-10-23 22:05:40 -07:00
Shane Grant bd766fe0bd Merge pull request #587 from stashlukj/patch-1
Add fall through comments to json.hpp
2019-10-22 19:51:14 -07:00