Commit Graph

101 Commits

Author SHA1 Message Date
Christoph Weiss
ca5cd7eece add (non-compiling) unit tests for std::unique_ptr<const T> 2017-08-16 18:14:01 +02:00
Christoph Weiss
0481881be2 add unit tests for std::unique_ptr<T> 2017-08-16 18:13:41 +02:00
Christoph Weiss
673add1212 add unit tests for std::shared_ptr<const T> 2017-08-16 18:12:21 +02:00
Shane Grant
f031131130 modifications for g47 and comment out memory intensive testing 2017-05-03 11:38:35 -07:00
Shane Grant
546fd9b896 tinkering on #354 2017-02-19 16:25:32 -08:00
Shane Grant
8b8f5814e2 Fix macro for double comparison in unit test
relates #338
2017-02-15 13:39:42 -08:00
Shane Grant
ee17db59c8 Merge branch 'develop' of github.com:USCiLab/cereal into develop 2017-02-06 22:51:29 -08:00
Shane Grant
b827b955f9 Fixes need for special MSVC case, see #373 2017-02-06 22:50:56 -08:00
Shane Grant
f577fc4ce4 Turn on warnings as errors for MSVC, warning level to 3
Can't do level 4 warnings yet - need to make an upstream change to doctest
2017-02-05 22:13:08 -08:00
Shane Grant
fb6606dbb8 Do not build coverage or valgrind for MSVC 2017-02-05 18:13:37 -08:00
Tushar Maheshwari
e4d543d0b4 Fix merge issues 2017-01-26 16:53:47 +05:30
Tushar Maheshwari
df44243bad Enable cross-platform portability test
CMake fix 32-bit executable with generator Win64
2017-01-26 14:16:28 +05:30
Shane Grant
a8e99636f5 Merge branch 'develop_doctest' into develop
see #139
2017-01-25 10:56:38 -08:00
Shane Grant
d21b0c0ab6 Merge branch 'laudrup-master' into develop
see #363
2016-11-28 11:47:53 -08:00
Shane Grant
e63f08f4d7 minor adjustments to casts, see comments on #363 2016-11-28 11:47:24 -08:00
Kasper Laudrup
9376ca6055 Don't use C style casts
Change C style casts to C++ static casts.

This makes the code compile with the -Wold-style-cast warning enabled
2016-11-23 01:34:53 +01:00
Shane Grant
1d67d44024 Removed boost_test as a requirement
-Now build 32 bit unit tests if portability testing is enabled
-No more boost+clang issues over std::string abi
see #139, #123
2016-11-04 16:07:00 -07:00
Shane Grant
66528b68be last? conversions for #139 2016-11-04 15:51:57 -07:00
Shane Grant
978b3b56b4 typo fix in comment #139 2016-11-04 12:11:51 -07:00
Shane Grant
13ae5609df more #139 2016-11-04 12:10:24 -07:00
Shane Grant
07818f4527 more #139 2016-11-04 12:00:16 -07:00
Shane Grant
b5e500d3b2 more #139 2016-11-02 16:32:35 -07:00
Shane Grant
a6e59d7e06 more for #139 2016-11-02 13:38:33 -07:00
Shane Grant
cd46374df8 more converted for #139 2016-11-02 12:20:22 -07:00
Shane Grant
38e15480c0 headers #139 2016-11-01 11:59:40 -07:00
Shane Grant
15c73394a9 more conversions #139 2016-11-01 11:59:02 -07:00
Shane Grant
928cd36335 more conversions to CHECK_EQ
see #139
2016-11-01 11:41:28 -07:00
Shane Grant
0a262ece48 More tests split, switch to CHECk_EQ over CHECK
see #139
2016-11-01 11:36:22 -07:00
Shane Grant
671999e4ea Initial progress on removing boost test and moving to doctest to better support modules
relates #123
2016-10-28 14:28:37 -07:00
drivehappy
e597e03f8a Fix bitset loading when bits are already set. 2016-10-28 10:44:39 -07:00
Shane Grant
c7b33a5a9c Add polymorphic dtor for all tests in polymorphic
see #349
2016-10-09 21:34:44 -07:00
Shane Grant
fb7fd75954 Changes to support thread safety
-Make CEREAL_THREAD_SAFE be 0 or 1 instead of present or not present
-Move CEREAL_NOEXCEPT to macros.hpp
-instead of individual locks, can now use StaticObject::lock() to request a lock if CEREAL_THREAD_SAFE is enabled. If
not enabled, this call returns an empty object. The lock returned acts just like std::lock_guard, but uses
std::unique_lock internally
-Made a bunch of requests to StaticObject::getInstance const
-Added first stab at multithreaded tests with versioning and polymorphism
2016-07-29 13:40:49 -07:00
Shane Grant
58d244edb7 fix uninit valgrind error for base ctor in diamond inheritance 2016-06-30 14:38:54 -07:00
Shane Grant
6d8bdd8818 Split lookup and exists check in PolymorphicCasters into two functions.
Fixes a bug related to lookup, see #291

Also changed from bool to uint8_t for #306

Updated gitignore for MSVC junk
2016-06-29 12:32:02 -07:00
Shane Grant
c330000cb4 Fix problems with portable_binary for BinaryData
see #298
2016-06-13 11:28:18 -07:00
Shane Grant
aaf1ef185e Implicitly build intermediate relations for polymorphism
relates to #281

Now if someone has a hierarchy like A -> B -> C,
the A->C relation will be automatically created if A->B and B->C already exist.
This is implemented by a chain of casts to get down the inheritance.

In the case of multiple paths, the shortest one will be chosen.
2016-04-29 16:39:31 -07:00
Shane Grant
8ab5c1cfe5 Unit tests for #216 2016-03-30 11:34:17 -07:00
Shane Grant
08891efaa9 Add empty serialization func for std::less
-Resolves issues with compiling priority_queue (#264)
-Removed std::less serialization from testing common file
2016-03-01 14:30:02 -08:00
Shane Grant
e9d33b0a1f BinaryData optimization for Bitset
Integrates the changes proposed by #236

Bitset will now use a chunking method when serializing to BinaryData
capable archives, which should be faster, especially for larger bitsets.

Archives that do not support BinaryData will continue to use the old method.

Also added a larger bitset to the test case
2016-02-05 10:14:44 -08:00
Shane Grant
6a7bffb34d fix double comparison for variant test #230 2016-01-27 15:22:43 -08:00
Shane Grant
27e4172f0b Improve variant test relates #230 2016-01-27 15:10:44 -08:00
Shane Grant
d612b9fc65 Merge branch 'test_boost_variant' of https://github.com/kylefleming/cereal into kylefleming-test_boost_variant 2016-01-27 15:03:24 -08:00
Shane Grant
f6d0308a0b Merge branch 'develop' of https://github.com/adasworks/cereal into adasworks-develop 2015-12-27 23:26:01 -08:00
Shane Grant
20778fe4b8 Finish up endian support for portable binary
-added more tests
-should resolve #115
2015-12-27 23:21:59 -08:00
Shane Grant
68f75089a9 Fix compilation issue with old boost test 2015-12-25 18:19:53 -08:00
Shane Grant
05afe09737 Merge branch 'issue_188' into develop
resolves #188

still need to update website doc
2015-12-25 18:02:20 -08:00
Shane Grant
61d610db27 Merge branch 'develop' of github.com:USCiLab/cereal into develop 2015-12-25 17:58:08 -08:00
Shane Grant
480de61173 make clang happy with integer comparisons 2015-12-22 22:30:30 -08:00
Shane Grant
1d50761ece Boost test related fix, fix unit test in response to #188 2015-12-21 23:21:11 -08:00
Shane Grant
bdd766d474 Adding unit tests for polymorphic casting
Added support for up and downcasting for polymorphism, see issue #188

Still needs final documentation + cleanup
2015-12-20 18:15:29 -08:00