677 Commits

Author SHA1 Message Date
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
404f3597ff Merge branch 'vcatechnology-json' into develop
see #229
2016-02-05 13:55:55 -08:00
Shane Grant
c5a47be1e3 more documentation for #201 2016-02-05 10:46:38 -08:00
Shane Grant
aaed50c767 Changing directories for concepts
relates #205
2016-02-05 10:24:22 -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
6c1b3f7602 Add desired NVP name to NVP not found error for json/xml
see #226
2016-01-27 15:48:21 -08:00
Shane Grant
0f8e40ef97 Merge branch 'kylefleming-test_boost_variant' into develop 2016-01-27 15:23:13 -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
7f3e3b59b1 Merge pull request #228 from kylefleming/fix_boost_variant
Fix boost::variant compile error with clang 3.5.0/3.6.0
2016-01-27 15:02:27 -08:00
Shane Grant
f367de1147 Merge branch 'adasworks-develop' into develop
see #239
2015-12-27 23:30:25 -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
72d7a6301c lazy revert of cmake changes in prep for #239 2015-12-27 23:25:29 -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
1ef6415f15 Update CMakeLists.txt
fix compilation on older cmakes
2015-12-25 20:12:24 -08:00
Shane Grant
7b10a08836 cmake support for interface library
resolves #222
2015-12-25 18:35:36 -08:00
Shane Grant
68f75089a9 Fix compilation issue with old boost test 2015-12-25 18:19:53 -08:00
Shane Grant
33556de79f include <polymorphic> by default for <memory>
relates #193
2015-12-25 18:11:25 -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
5a906d1c41 add inline specifier to function 2015-12-25 17:53:08 -08:00
Shane Grant
33e421cb32 Cleanup on documentation/some other small things
relates #188
2015-12-25 17:51:02 -08:00
Shane Grant
3f055ae24c Working on MSVC2013
-removed some debug messages
-spruced up some documentation
-modified main.cpp for MSVC tests to properly compile given previously made changes in common.hpp
relates issue #188
2015-12-23 22:54:35 -08:00
Shane Grant
37380fa6ff First pass at inline doc for new polymorphic casting
Also some changes to make sandbox things work with the new casting

Made it so base_class doesn't need to know about polymorphism to work

All relates to #188
2015-12-22 23:39:25 -08:00
Shane Grant
480de61173 make clang happy with integer comparisons 2015-12-22 22:30:30 -08:00
Shane Grant
ba561c067f Merge pull request #240 from kersson/json_minimal_msvc2013
Additional MSVC JSON minimal fixes
2015-12-22 14:56:39 -08:00
Shane Grant
e9a71acb07 Merge branch 'BigSeb-develop' into develop
resolves #244
2015-12-22 14:52:24 -08:00
Shane Grant
ecb44372e5 grammar fix 2015-12-22 14:52:02 -08:00
Shane Grant
61429d2292 Merge branch 'develop' of https://github.com/BigSeb/cereal into BigSeb-develop 2015-12-22 14:44:37 -08:00
Shane Grant
7a3933ff0f Wrapping up external code in cereal namespace
Covers base64 and rapidxml, still need to do json
see #121
2015-12-22 14:26:14 -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
Shane Grant
5008bddcb9 initial progress towards #188, fixed in the save direction
Needs to be done in load direction + unit tests + attribution + cleanup
2015-12-19 12:07:26 -08:00
Sébastien Matte
de1011152e Fixed an issue with the preservation of whitespaces for strings. The validation may be invalid when one of the previous calls to the saveValue was done and the value was taking more characters. A test is now added in order to reproduce this error. 2015-11-06 00:24:17 -05:00
Krishna Ersson
3184b468bc Additional MSVC JSON minimal fixes
The fixes in f451090 still did not solve USCiLab/cereal#217.
Changed the SFINAE logic to use EnableIf with AND conjunctions via the variadic arguments.
2015-10-08 17:11:18 -04:00
Tamas Kenez
f2ccfea1f8 cmake: don't overwrite CMAKE_CXX_STANDARD if it's already higher 2015-10-07 11:02:34 +02:00
Tamas Kenez
cd7346ff3d cmake improvements (install target)
- add install target to install config-module for
  which creates an INTERFACE library
- add unittest to test config-module
- add option to skip tests and install only
- fix MSVC compatibility problem in CMakeLists.txt
2015-10-06 14:32:40 +02:00
Shane Grant
1479f8e635 XML getNodeName working as intended now
Fixes #235
2015-09-24 21:17:49 -07:00
Matt Clarkson
2c0451d647 Support root arrays in JSONInput
If a root array '[13, 14, 15]' is given to the JSONInput it will fail to
parse it because it is expecting an object. Root arrays are conformable to
the old JSON specification that the version of RapidJSON cereal uses
implements
2015-09-22 15:03:24 +01:00
Matt Clarkson
608d48d7b8 Fix whitespace alignment 2015-09-17 15:15:31 +01:00
Matt Clarkson
8fefa0cd77 Allow serialization of nullptr
This allows 'null' to be written to JSON archives
2015-09-17 15:15:13 +01:00
Matt Clarkson
f54f9e89fd Correct whitespace error 2015-09-11 14:45:47 +01:00
Shane Grant
0ff685ce4d Merge pull request #220 from berenm/patch-1
Add inline specifiers to make_size_tag, prologue and epilogue
2015-09-09 22:47:17 -07:00
Shane Grant
f45109083f MSVC JSON minimal fixes
MSVC 2013 couldn't handle the boolean expression used in some SFINAE tests - was treating a three-way OR with one true value as false.  This fixes #217
2015-09-09 22:25:15 -07:00
Matt Clarkson
6da711b843 Allow JSON output node to finish arrays
It is possible that a node might want to serialize as an Array at the
top level. This patch closes out the array if that is the situation.
2015-09-04 10:13:40 +01:00
Matt Clarkson
23053232d4 Resolve whitespace error 2015-09-04 10:13:24 +01:00
Kyle Fleming
99d8f0a77d Barebones boost::variant unit test 2015-09-03 17:15:06 -07:00
Kyle Fleming
df33ae5c4d Fix boost::variant compile error with clang 3.5.0
boost::variant<int> variant(10);
cereal::JSONOutputArchive oarchive(std::cout);
cereal::save(oarchive, variant);

note: candidate template ignored: substitution failure [with Archive = cereal::JSONOutputArchive, VariantTypes = <>]: too few template arguments for class template 'variant'
  void save( Archive & ar, boost::variant<VariantTypes...> const & variant )

see: https://llvm.org/bugs/show_bug.cgi?id=20890#c1
2015-09-03 17:10:32 -07:00
Beren Minor
447bdc7399 Add inline specifiers to make_size_tag, prologue and epilogue
It looks like that MSVC doesn't want to inline make_size_tag, and it has an impact on performance. I haven't seen the problem with prologue and epilogue functions. In anyways, just for the sake of consistency with other wrappers, inline looks sensible here.
2015-08-20 16:34:40 +02:00