939 Commits

Author SHA1 Message Date
Patrik Huber
dc9e573dfb Changed serialised index type of std::variant to std::uint32_t
This makes saving & loading std::variant cross-platform.
2018-03-15 11:36:26 +00:00
Shane Grant
13d1d36cae Make g++7 travis build use C++17 relates #473 2018-03-13 19:56:51 -07:00
Shane Grant
ae7529c211 Merge branch 'cpp17_tests' into develop #448 2018-03-13 19:49:03 -07:00
Shane Grant
a88e1c7dfd Improve C++17 check for MSVC #448 2018-03-13 19:43:18 -07:00
Shane Grant
7cf1cba5f1 Cmake updates and boost disambiguation for #448
Also addresses #473. A solution that prevents code duplication is the
ultimate goal but this will be fine for now.
2018-03-13 19:27:34 -07:00
Erich Keane
e9234e3fb6 Change StaticObject instance management to hopefully avoid UBSAN
The static-object hack currently used requires passing an
uninitialized reference as a reference.  This fix uses a cast
to void to hopefully avoid that undefined behavior.
2018-02-03 20:33:00 -08:00
Shane Grant
e9551c9942 Merge branch 'cpp17_tests' into develop
see #448
2017-12-15 14:08:49 -08:00
Shane Grant
f094ba78ec fix optional testing, properly name coveragee for cpp17
relates #448
2017-12-15 13:35:43 -08:00
Shane Grant
83df216451 Merge branch 'cpp17_tests' of github.com:USCiLab/cereal into cpp17_tests 2017-12-15 13:27:25 -08:00
Shane Grant
6a2826150f rename value to data 2017-12-15 13:27:05 -08:00
Shane Grant
53441ea669 Merge branch 'WSoptics-develop' into develop
See #417, PR #423
2017-11-20 14:23:16 -08:00
Shane Grant
0d96673536 more const for poly 2017-11-20 14:22:24 -08:00
Shane Grant
322fb95a5d Adding const to poly tests 2017-11-20 14:17:57 -08:00
Shane Grant
0d3edb8c29 Progress towards load and construct for const types, see #417 2017-11-20 13:59:55 -08:00
Shane Grant
65adc87c7c Merge branch 'develop' of https://github.com/WSoptics/cereal into WSoptics-develop 2017-11-19 21:57:05 -08:00
Shane Grant
e519567cd2
Merge pull request #450 from patrikhuber/cpp17_tests
Negated optional check when saving
2017-11-19 21:41:56 -08:00
Patrik Huber
0f61bc8a38 Negated optional check when saving
This now correctly saves the optional value, see #448.
2017-11-11 18:08:35 +00:00
Shane Grant
59621d6023 Working towards cpp17 tests
Progress towards #448

Lots of warnings from g++7.2, these are addressed in #423 which hasn't been merged yet.
CMAKE can be cleaned up a bit - may put back in the ability to use older cmake and just throw errors as necessary,
otherwise just force people to use at least cmake 3.1
2017-11-05 19:07:31 -08:00
Juan Pedro Bolívar Puente
f158a44a32 Add serialization support for std::optional 2017-10-27 14:18:02 +02:00
Juan Pedro Bolívar Puente
0cef0b7073 Add serialization support for std::variant
For its unit tests to run, pass -DCMAKE_CXX_STANDARD=17 to cmake.
2017-10-27 14:17:59 +02:00
Shane Grant
ed49c96c80 Rename map for #445 2017-10-25 12:56:23 -07:00
Shane Grant
84a6c4b063 Simplify structs for atomic test
-Should hopefully fix atomic size issue for some compilers
-May still need to be more explicit in CTOR for windows, pending appveyor results
relates #277
2017-09-13 13:46:21 -07:00
Shane Grant
05c0cb0521 forgot to add this! 2017-09-12 14:55:29 -07:00
Shane Grant
c37d44fd7e Merge branch 'develop' of github.com:USCiLab/cereal into develop 2017-09-12 14:49:32 -07:00
Shane Grant
54b2fe12b5 Merge branch 'bluescarni-atomic' into develop
relates #277
2017-09-12 14:49:06 -07:00
Shane Grant
9323fc0af7 modify atomic tests for doctest, clean up serialization code 2017-09-12 14:48:28 -07:00
Christoph Weiss
11882b6261 make CEREAL_BIND_TO_ARCHIVES not have an unused function under GNU C / clang to keep them from warning 2017-09-08 21:22:06 +02:00
Christoph Weiss
f5a9404503 explicitly enable copy ctor to keep clang from warning 2017-09-08 21:22:03 +02:00
Christoph Weiss
c0f2e28719 correct std::size_t to std::streamsize to avoid clang warning 2017-09-08 21:21:53 +02:00
Shane Grant
bcd69859c0 Merge branch 'atomic' of https://github.com/bluescarni/cereal into bluescarni-atomic 2017-09-08 11:57:04 -07:00
Shane Grant
ca75f4b53e Merge pull request #431 from furkanusta/travis
Refactored Travis integration and added new targets
2017-09-07 11:39:12 -07:00
Shane Grant
cb78660421 Merge pull request #432 from furkanusta/fix416
Fix for #416, Implicit falltrough warning on GCC7.1 (Re-sending)
2017-09-07 11:16:29 -07:00
Furkan Usta
f7baa90c23 Changed 'and' 'or' operators with their symbolic counterparts
Apparently literal words cause problems in MSVC
2017-09-07 19:33:02 +03:00
Shane Grant
7292a605dd Merge pull request #430 from WSoptics/dynamic_init
fix CEREAL_*_DYNAMIC_INIT
2017-09-06 16:03:20 -07:00
Furkan Usta
01dd76f515 Added missing implicit fallthrough pragma (Related to #416)
Also, this one fixes the forgotten pragma pop at the end of the header file
2017-09-04 13:20:58 +03:00
Furkan Usta
f698f33ca0 Workaround for #416
Instead of adding std::fallthrough, this one disables
implicit-fallthrough warnings via pragma push/pop mechanism
2017-09-04 13:17:00 +03:00
Furkan Usta
8859e1f9f0 Refactored Travis integration and added new targets
List of enabled targets:
On Linux:
+ gcc {4.7, 4.8, 4.9, 5.0, 6.0, 7.0} (without compat tests)
+ gcc 5.0 with compat tests enabled
+ clang {3.5, 3.6, 3.7, 3.8, 3.9, 4.0} (with libsdtc++)

On OSX:
+ XCode {7.3, 8, 8.2, 8.3, 9.0}

Missin Ones:
+ XCode 8.1 (Doesn't have CMake)
+ Linux Clang with libc++ (missing cxxabi.h)
+ Linux Clang 5.0 (missing <type_traits>)
2017-09-03 22:50:17 +03:00
Christoph Weiss
baeb6d8b0e fix CEREAL_*_DYNAMIC_INIT 2017-09-01 13:45:31 +02:00
Christoph Weiss
ebbf3a6768 fix -Wconversion warning in gcc7 2017-08-28 12:02:04 +02:00
Shane Grant
0adf9e6865 Merge pull request #426 from soroush/develop
Remove conflicting defines for Windows.h
2017-08-27 22:05:07 -07:00
Shane Grant
85b5f73252 ignore MSVC cruft 2017-08-27 22:02:17 -07:00
Shane Grant
a4edd60629 make msvc12 happy 2017-08-27 21:53:59 -07:00
Soroush Rabiei
72c83d9b04 Remove conflicting defines for Windows.h
* Some Windows SDK installations (like mine) may define `max' in
    `Windows.h`, causing `std::numeric_limits::max()' cease to work.

    Details: https://stackoverflow.com/q/27442885/275221

Signed-off-by: Soroush Rabiei <soroush.rabiei@gmail.com>
2017-08-26 14:11:27 +04:30
Shane Grant
efcfb95e9f remove broken travis builds for now, will fix later 2017-08-24 21:25:33 -07:00
Shane Grant
9b1dd1673d travis will you be kind to me 2017-08-24 21:22:47 -07:00
Shane Grant
dbb16b1942 travis, again 2017-08-24 21:09:52 -07:00
Shane Grant
96442fff9e tra vi s 2017-08-24 21:00:18 -07:00
Shane Grant
ba559a23ed travis 2017-08-24 20:53:32 -07:00
Shane Grant
9b1fe1efa5 debugging travis 2017-08-24 20:45:42 -07:00
Shane Grant
7fd9136f8d travis! 2017-08-24 20:37:30 -07:00