939 Commits

Author SHA1 Message Date
Shane Grant
75e50ee1e6 remove old code from sandbox relates #363 2016-11-28 13:48:46 -08:00
Shane Grant
507f97d3ad add -Wold-style-casts see #363 2016-11-28 11:53:56 -08:00
Shane Grant
f69ad7cd9e tab to space 2016-11-28 11:50:23 -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
Shane Grant
29829c167e Merge branch 'FlexCoreLib-doxygen_access_from_extern' into develop
see #365
2016-11-28 10:41:27 -08:00
Shane Grant
ad927466b5 comment out obsolete doxygen 2016-11-28 10:41:02 -08:00
Shane Grant
9978e0c03f Merge pull request #366 from headupinclouds/pr.is_loading.is_saving
Add is_loading and is_saving values to cereal::{Input,Output}Archive
2016-11-28 10:37:17 -08:00
Shane Grant
1edc5c6f6d Merge pull request #367 from tusharpm/develop
Travis configuration updates
2016-11-28 10:35:24 -08:00
Tushar Maheshwari
6086234740 Travis configuration updates
- Switch to trusty container-based infrastructure for linux systems
- Add a job to test with clang compiler (skips portability test)
- Add a job to test on macOS with Xcode8
2016-11-27 18:28:13 +05:30
David Hirvonen
6e717666f3 Remove spurious character 2016-11-26 12:31:56 -05:00
David Hirvonen
2e96b9915e Add is_loading and is_saving values to cereal::{Input,Output}Archive
This provides compatibility for asymmetric serialize routines when transitioning from boost serialization and associated archive types.

See: https://github.com/USCiLab/cereal/issues/360

Example:
```
    template <typename Archive>
    void serialize(Archive &ar, const std::uint32_t version)
    {
        std::int16_t tmp = foo;
        if(Archive::is_loading::value)
        {
            ar & tmp;
            foo = tmp; // For illustration only
        }
        else
        {
            tmp = foo; // For illustration only
            ar & tmp;
        }
        ar & foo;
    }
```
2016-11-25 16:02:00 -05: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
72d79364c9 catch empty json, relates #359 2016-11-11 13:45:27 -08: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
Shane Grant
195c0bf229 Merge pull request #355 from drivehappy/develop
Fix bitset loading when bits are already set.
2016-10-28 11:30:48 -07:00
drivehappy
34bb0d9494 Clear all bits first before deserializing, this should be faster than individually clearing them. 2016-10-28 11:19:15 -07:00
drivehappy
e597e03f8a Fix bitset loading when bits are already set. 2016-10-28 10:44:39 -07:00
Shane Grant
d27cc338d2 g++47 support fix #354 2016-10-27 13:20:23 -07:00
Shane Grant
74030ce9e2 Removing debug from prev commit for new polymorphic chaining
-Also forgot to mention that I think there was a bug with upcasting before where the casting was
 incorrectly done in the reverse order.

 -relates #354
2016-10-27 12:21:48 -07:00
Shane Grant
bf0f9aee1c New implementation for polymorphic chaining
-This version has all of the debug messages left in, next commit will remove them
-Algorithm description provided in comments
-relates #354
2016-10-27 12:18:35 -07:00
Shane Grant
fc57d93847 Merge branch 'auric-patch-1' into develop
see #345
2016-10-12 11:00:31 -07:00
Shane Grant
8c1517d1b0 Merge branch 'patch-1' of https://github.com/auric/cereal into auric-patch-1 2016-10-12 10:57:19 -07:00
Igor
96deb7e9d3 Update static_object.hpp 2016-10-12 10:47:33 +03:00
Igor
74e0b1b698 Update static_object.hpp
removed empty extra line
2016-10-12 10:47:01 +03:00
Igor
500e7a0188 Update static_object.hpp
I cannot understand what is going on here with `static T & instance;`, I propose to do not change `create()`. But it would be better if someone explain what is happening here :)
2016-10-12 10:45:37 +03:00
Igor
e715149f4d Update static_object.hpp
fixed misprint
2016-10-12 10:35:38 +03:00
Shane Grant
f4ae56a19b Merge branch 'dlardi-register-chainable-relations-fix' into develop
see #335
2016-10-11 14:58:09 -07:00
Shane Grant
383cea57eb Realized that the multimap was to catch multiple paths within a single iteration.
Instead of using a multimap, we really just want the shortest path found per iteration.
Went back to a map, if a shorter path is found before we commit the changes, stage the shorter one instead.
2016-10-11 14:57:19 -07:00
Shane Grant
e080c31867 Merge branch 'register-chainable-relations-fix' of https://github.com/dlardi/cereal into dlardi-register-chainable-relations-fix 2016-10-11 11:55:27 -07:00
Shane Grant
3541f6588c Merge branch 'junghans-Werror' into develop
see #337
2016-10-11 11:51:07 -07:00
Shane Grant
c51095f9d3 Reverse from default negation to avoid potential confusion
relates #337
2016-10-11 11:50:28 -07:00
Shane Grant
4854ed5380 Merge branch 'kklouzal-develop' into develop
see #347, #346
2016-10-11 11:44:25 -07:00
Shane Grant
80c518bcfc Merge branch 'develop' of https://github.com/kklouzal/cereal into kklouzal-develop 2016-10-11 11:36:41 -07:00
Shane Grant
f414a41a76 Merge branch 'erichkeane-fix_check' into develop
relates #342
2016-10-09 21:38:36 -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
c99294ea91 Merge branch 'Enhex-patch-1' into develop see #351 2016-10-09 21:15:29 -07:00
Enhex
e694a6311a Replaced hardcoded rapidsjon namespacing with CEREAL_RAPIDJSON_NAMESPACE 2016-10-08 22:58:31 +03:00