Commit Graph
799 Commits
Author SHA1 Message Date
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
Shane Grant a2d5a15b67 Merge branch 'tusharpm-develop' into develop
see #373

Still need to address why windows needed a modifcation to polymorphic test to compile
2017-01-27 10:29:51 -08:00
Tushar Maheshwari e4d543d0b4 Fix merge issues 2017-01-26 16:53:47 +05:30
Tushar Maheshwari 2261feea2f Pull requests to not increment build numbers 2017-01-26 14:16:29 +05:30
Tushar Maheshwari 4ff4db8532 boost new version 2017-01-26 14:16:29 +05:30
Tushar Maheshwari 655696ad81 AppVeyor integration 2017-01-26 14:16:28 +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
Tushar Maheshwari 0a908bc8c8 Make tests pass with Windows 2017-01-26 14:16:28 +05:30
Shane Grant 4a92e2930e no longer need boost test in travis 2017-01-25 11:04:24 -08:00
Shane Grant a8e99636f5 Merge branch 'develop_doctest' into develop
see #139
2017-01-25 10:56:38 -08:00
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