Shane Grant
2edc936e50
Better error messages for bad serialization
...
Inspired by #124 , we now give explicit messages if you we can't find a serialization function
or if we find more than one.
2014-09-26 15:02:02 -07:00
Shane Grant
bbfd418013
Add traits for text archive identification
...
Archives that output text (human readable to some extent) should now derive from the type traits class
cereal::traits::TextArchive.
Testing for this can be done with cereal::traits::is_text_archive
Relates to #80
2014-09-06 22:28:10 -07:00
Shane Grant
948a869a08
Add cereal::traits::is_same_archive
...
See discussion of this on issue #80
2014-09-05 16:43:23 -07:00
Randolph Voorhies
06d9fc4f8a
Whoops, shouldn't have committed that CMakeLists
2014-09-02 11:51:38 -07:00
Randolph Voorhies
28f9841fdb
Fixing issues with icc. refs #120
...
In sandbox_vs.cpp, there is a very strange issue with calling
traits::is_input_serializable that causes icc 15.0.0 to crash.
Everything else works great though.
2014-09-02 11:49:47 -07:00
Shane Grant
e6cb01e89a
Addressing both ICC issues in #120
2014-09-02 11:14:18 -07:00
Shane Grant
2b8bbab316
Finalize fix for #105
...
Decided to go with the simple ifndef solution since the template
acrobatics to disable things just for MSVC would not ahve been worth it
Tried to add ARM build for MSVC but this turns out to be hard to do without
making a windows store/phone app, which requirse an active dev license
2014-08-29 22:31:20 -07:00
Shane Grant
fdb822f4fd
Change std::is_default_constructible to traits version
...
Relates to fixes for issue #119
2014-08-28 21:14:14 -07:00
Randolph Voorhies
652e9b7f34
Fixed issue with private c'tors
...
This fixes an issue where we were not properly using cereal::access to
default construct classes.
This closes issue #119 .
2014-08-26 11:45:38 -07:00
Shane Grant
2e1737ec1f
Uncomment test for issue #116
2014-08-22 13:23:44 -07:00
Shane Grant
2efa919b53
Merge branch 'issue_116' into develop
...
Char tested on all dev environments, looks fine and passing tests.
Closes #116
2014-08-22 10:30:29 -07:00
Shane Grant
13b0c7edb5
Support for char in XML archive
...
-Added unit tests for char in pod
-XML archive should properly deserialize chars vs int8_t types now
see #116
still needs to be tested on VS and g49
2014-08-21 23:43:52 -07:00
Shane Grant
f6f2972cb8
Update .travis.yml
...
Make travis use a more recent version of boost.
2014-08-18 23:31:32 -07:00
Shane Grant
8efbc0c6f5
Merge branch 'issue_109' into develop
2014-08-18 23:17:04 -07:00
Shane Grant
9a5a7134db
Temporary fix for #105
2014-08-18 23:15:29 -07:00
Shane Grant
ba63d4a093
Merge branch 'volo-zyko-master' into issue_109
2014-08-18 17:10:25 -07:00
Shane Grant
0163d6cdd6
make isWhitespace xml_detail function instead of member
2014-08-18 17:08:51 -07:00
Shane Grant
a295a3635b
Merge branch 'vigsterkr-develop' into develop
2014-08-18 16:54:34 -07:00
Volo Zyko
f8a871c7ff
Another attempt to fix issue #109 now for any type that can contain whitespaces
2014-08-18 14:57:07 +03:00
Volo Zyko
c068ba2405
Reverted changes in xml.hpp for issue #109 .
2014-08-13 22:24:55 +03:00
Viktor Gal
3781ab3d49
Fix Boost header path inclusing if found
2014-08-07 10:59:57 +08:00
Randolph Voorhies
b405737fbf
Merge pull request #111 from besser82/add-cross-test-switch
...
add CMake-option 'SKIP_PORTABILITY_TEST'
2014-08-05 12:38:54 -07:00
Björn Esser
869b2b2cda
add CMake-option 'SKIP_PORTABILITY_TEST'
2014-08-05 19:43:15 +02:00
Volo Zyko
16bf75dedf
Extended the fix for issue #109 and added a test.
2014-07-31 15:45:05 +03:00
Volo Zyko
b0d45bd565
Fixed issue #109 . std::string is serialized/deserialized in XML with CDATA node.
2014-07-28 15:20:43 +03:00
Shane Grant
e423228dde
Adding a clean way of dealing with #107
2014-07-07 14:26:30 -07:00
Shane Grant
ea007dafd8
Adding additional tests to cover issue #79
2014-06-06 15:24:24 -07:00
Shane Grant
f067ba6905
Fixing issue #79
...
Added a set of trait classes that can be used to get an input archive
from an output archive. Requires specializing a struct for each direction or
alternatively using the new macro CEREAL_SETUP_ARCHIVE_TRAITS(InArchive, OutArchive).
This has already been added for all built in archive types. This is currently only
used for minimal serialization.
load_minimal type traits now correctly use the output archive to check the existence of
a corresponding save_minimal and get its return type, using the new get_input_from_output
type class.
Added a test for this case into the minimal structs test.
Sandbox_vs needed the new macro to become compliant.
2014-05-22 10:59:13 -07:00
Shane Grant
5305078096
Consolidate non-member save_minimal relates #85
2014-05-21 16:20:02 -07:00
Shane Grant
6d738d7171
experimenting with a cast
2014-05-21 15:02:59 -07:00
Shane Grant
8785741f41
Progress towards #46
2014-05-19 16:15:16 -07:00
Shane Grant
4ed9ef9e83
more cleanup for non member save
...
see #85
2014-05-19 15:27:05 -07:00
Shane Grant
4a0b06ec97
Consolidate save_minimal type trait checks
...
relates #85
2014-05-19 15:19:40 -07:00
Shane Grant
2e82e36f60
adding a few undefs to internal trait macros
2014-05-13 16:07:55 -07:00
Shane Grant
bbcc6f5aa9
formatting
2014-05-12 10:42:21 -07:00
Shane Grant
bf1bb9dc58
Changed nvp to new style
2014-05-12 10:36:37 -07:00
Shane Grant
876efe9f49
Merge branch 'Factoid-json_memory' into develop
2014-05-12 10:28:45 -07:00
Shane Grant
d85d8136e1
Fixing versioning for classes in namespaces
...
Fixes #99
2014-05-12 10:22:38 -07:00
Adrian Cheater
b4e7d222de
Removed debugging std::cout
2014-05-10 00:11:52 -05:00
Adrian Cheater
dc80eabbbf
Fixed up missing NVP calls for out of order deseriailization of std::unique_ptr and std::shared_ptr
2014-05-10 00:11:52 -05:00
Shane Grant
fd73e8066f
Modify cmake so that performance gets built
2014-05-07 15:45:51 -07:00
Shane Grant
1d8deb2521
Combine non-member save tests
...
relates #85
2014-05-06 22:24:07 -07:00
Shane Grant
fe4b72314f
combined traits for member save into one
...
relates #85
2014-05-06 11:25:11 -07:00
Shane Grant
d4704dedb3
comment out obsolete line in doxygen
2014-05-06 11:04:04 -07:00
Shane Grant
e6a3da0f87
More traits cleanup
...
Combined the non member tests, relates #85
2014-05-04 15:40:45 -07:00
Shane Grant
2056257177
Consolidated macro to create member tests
...
Got rid of the near identical versioned variant of the macro, just one macro that can be parameterized
to handle versioned functions now.
Relates to #85
2014-05-04 15:22:20 -07:00
Shane Grant
b957321659
Making some changes suggested by FlintPlusPlus
...
Replaced an occurence of NULL with nullptr.
Renamed _CEREAL_NVP to CEREAL_NVP_
Made exception constructors explicit
2014-05-03 11:27:40 -07:00
Shane Grant
7121e91e6a
Update README.md
...
fix compilation error in example, see #97
2014-05-02 09:40:36 -07:00
Shane Grant
8217d7ecf6
Formatting and forwarding in helpers.
...
Closes #96
2014-05-01 10:32:53 -07:00
Shane Grant
5114eaaf25
nvp for #96
2014-04-30 17:09:48 -07:00