729 Commits

Author SHA1 Message Date
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
Shane Grant
b849a39950 Merge branch 'abutcher-gh-generalize-map-serializer' into develop
see #205
2015-07-17 10:47:13 -07:00
Shane Grant
db6aaffb69 Comment level doc for #205 2015-07-17 10:46:33 -07:00
Adam Butcher
d350c81947 concepts/pair_associative_container.hpp: Have inclusion guard reflect location. 2015-07-17 09:18:41 +01:00
Adam Butcher
207c085a26 Added cereal/concepts/pair_associative_container.hpp and restored std includes in cereal/types/{unordered_map,map}.hpp 2015-07-17 09:13:23 +01:00
Adam Butcher
84e2f8edda Generalize cereal/types/map.hpp to deal with arbitrary pair associative containers having mapped_type. 2015-07-14 10:49:08 +01:00
Shane Grant
69fbcb556f Merge pull request #199 from ph03/develop
Fix shared_ptr custom deleter
2015-06-23 11:30:12 -07:00
Janick Martinez Esturo
f3d7206bb2 Fix shared_ptr costum deleter
Correctly prevent calling destructor on unitialized data
2015-06-16 01:41:56 +01:00
Shane Grant
2f9471bc40 Merge branch 'develop' for release 1.1.2 v1.1.2 2015-06-08 11:13:21 -07:00
Shane Grant
774fe618cb tested working on vs 2015-05-02 23:19:39 -07:00
Shane Grant
676ebf76fa more tab spacing fixes 2015-05-02 21:53:30 -07:00
Shane Grant
4b1b70b302 tab spacing style fix 2015-05-02 21:52:44 -07:00
Shane Grant
7ae8d0dda4 Adds support for std::valarray
Merge branch 'ilerik-std.valarray.support.implementation' into develop
see #184
2015-05-02 21:50:02 -07:00
Shane Grant
15d4e9f10e style changes 2015-05-02 21:49:39 -07:00
Shane Grant
839ae30cc0 style changes 2015-05-02 21:41:43 -07:00
Shane Grant
7e1d32f1d5 Merge branch 'std.valarray.support.implementation' of https://github.com/ilerik/cereal into ilerik-std.valarray.support.implementation 2015-05-02 21:30:25 -07:00
Shane Grant
5d541d33cd JSON now matches string length for out of order NVPs
Fixes #183, relates #168, #169
fix originally proposed by @felixzng
2015-05-02 21:17:44 -07:00
ilerik
005d628652 Added support for std::valarray.
1) Implemented std::valarray serialization (based on vector.hpp) in file valarray.hpp
2) Implemented unit tests in file valarray.cpp (based on vector.cpp tests, except for bool case)
3) vs2013/unittests project configuration updated accordingly
4) unittests/common.hpp updated.
5) No documentation so far
2015-04-18 17:50:59 +03:00
Shane Grant
a248e3a55d Merge branch 'develop' for 1.1.1 release 2015-04-06 10:24:39 -07:00
Shane Grant
94d49c42ac is_in/out_serializable is now aware of specialization
count_in/out_serializers will now count the number of specializations if a type is
specialized, otherwise it will count the number of non-specialized serialization functions.

as a result of this, is_output/input_serializable now works as you would expect from the name
and will return true for correctly configured specialized types too.

this caused some logic changes to need to happen in cereal.hpp, mostly within the PROCESS_IF macro.

added some tests related to this change and #180

fixes #180
v1.1.1
2015-04-04 18:19:22 -07:00
Shane Grant
b385b3958a Empty string fixes with XML serialization
Fixes #182
2015-04-04 15:09:23 -07:00
Shane Grant
aad1e371c7 Merge branch 'develop' of github.com:USCiLab/cereal into develop 2015-03-29 00:36:28 -07:00
Shane Grant
14bc429d9a Various fixes for warning level 4 with MSVC
closes #178
relates #151
2015-03-29 00:35:34 -07:00
Shane Grant
16084f734a Merge branch 'eschnett-patch-1' into develop 2015-03-04 15:28:11 -08:00
Shane Grant
0d8cebe6f3 Add unit tests for size 11 tuple, re: #175 2015-03-04 15:24:11 -08:00
Erik Schnetter
4f1dc224e6 Prevent infinite template recursion for 11-element tuples 2015-03-03 21:29:04 -05:00
Shane Grant
9c9ca54829 doxygen comment fix 2015-02-12 11:52:35 -08:00
Shane Grant
81ec2714ea Merge branch 'develop' see #166 v1.1.0 2015-02-04 10:41:22 -08:00
Shane Grant
c6b899ef1f Add getNodeName API see #166, #66 2015-02-04 10:40:59 -08:00
Shane Grant
50bb286b78 Merge branch 'develop' re issue #165 2015-02-04 10:19:14 -08:00
Shane Grant
d99beeb6d8 Merge branch 'jhol-fix-dynamic-init' into develop 2015-02-04 10:17:40 -08:00
Joel Holdsworth
93e075f008 Fixed parameter naming in CEREAL_REGISTER_DYNAMIC_INIT and CEREAL_FORCE_DYNAMIC_INIT 2015-02-04 16:24:06 +00:00
Shane Grant
f9f7ac0943 Remove boost include and unused sandbox
Should be no problem compiling when boost isn't found #162
2015-01-23 11:47:04 -08:00
Shane Grant
a5634de53e Merge branch 'develop' for 1.1 2015-01-19 12:48:29 -08:00
Shane Grant
af9454b2e8 fix update scripts to apply to develop 2015-01-19 12:09:28 -08:00
Shane Grant
7e491356e3 doxygen comment fix 2015-01-18 15:33:30 -08:00
Shane Grant
c9fa441d7d Tidy up error messages 2015-01-18 15:28:54 -08:00
Shane Grant
4cd441e3a6 Update error messages for #160 2015-01-18 14:53:20 -08:00
Shane Grant
3c330b7507 Doxygen updates and some renaming re #160 2015-01-18 14:50:40 -08:00
Shane Grant
994aceeec0 Poly types no longer fail to compile if an already included archive is not compatible with the type.
Updated run time error to be more informative when polymorphic serialization fails.

working on changing CEREAL_REGISTER_SHARED_LIBRARY to less specific name and description
2015-01-18 01:13:43 -08:00
Shane Grant
b524b60ddf base_class behaves properly with minimal serialization
Added static_assert on improper use of base_class with non base class.
Removed ElideMinimal type and related traits.
Added BaseClassBase type which base_class and virtual_base_class inherit from.
Added traits to see if wrapped type is minimal, updated xml/json accordingly.
2015-01-17 13:53:42 -08:00
Shane Grant
1e4398c5b2 adding missing cmake file 2015-01-17 11:40:15 -08:00
Shane Grant
6e41ed80b8 Merge branch 'issues_113_137' into develop
Conflicts:
	include/cereal/details/helpers.hpp
2015-01-17 00:45:25 -08:00
Shane Grant
419343a0c5 Fix unused var warning for static vars, add cmake rules for shared lib sandbox 2015-01-17 00:36:36 -08:00
Shane Grant
c2f881de5b reorganize sandbox_vs 2015-01-16 22:48:21 -08:00
Shane Grant
5dc59708ca remove debug printout 2015-01-16 22:37:44 -08:00
Shane Grant
724112cccb Remove experimental any implementation
relates #46
2015-01-16 15:47:25 -08:00
Shane Grant
418271f219 Marking adapters as FUTURE_EXPERIMENTAL
see notes in #46
2015-01-16 15:42:10 -08:00
unknown
9fb72cf6c4 Assertion failed in destructor of JSONOutputArchive when no object was serialized 2015-01-15 15:36:39 -08:00