966 Commits

Author SHA1 Message Date
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
Shane Grant
3f4358d61a code cleanup 2015-01-15 15:31:07 -08:00
Mikhail Kremnyov
00f47ed3b9 CEREAL_REGISTER_TYPE can now be called multiple times for the same type
Conflicts:
	include/cereal/cereal.hpp
	include/cereal/details/polymorphic_impl.hpp
2015-01-15 15:27:58 -08:00
Shane Grant
0626809bac update vs sandbox 2015-01-14 23:05:41 -08:00
Shane Grant
1a963d06c3 Add tag in anon namespace to allow multiple translation units for CEREAL_CLASS_VERSION
relates #137
2015-01-14 23:02:15 -08:00
Shane Grant
56e20c93bf clean up static_object, add export to class
relates #113 #137
2015-01-14 22:58:06 -08:00
Shane Grant
330e53f3a1 Merge branch 'erichkeane-XmlFix' into develop
Conflicts:
	include/cereal/archives/xml.hpp
2015-01-09 20:15:28 -08:00
Shane Grant
f4290726af Adding some types to XML in sandbox 2015-01-09 20:14:32 -08:00
Erich Keane
871436a9c6 Fixed off-by-one memory allocation in xml
This defect was discovered in issue #153, and resulted in reading
past memory.  This fix repairs the off-by-one situations.  Additionally,
in usages of this function where the size is known, it saves processing
by using the std::string's length property.

Signed-off-by: Erich Keane <erich.keane@verizon.net>
2015-01-09 17:44:22 -08:00
Shane Grant
f7ec6cfcc3 Documentation/typo corrections for tuple
relates #143
2015-01-09 10:29:23 -08:00
Shane Grant
c1c604876e Merge branch 'erichkeane-TupleKeyNames' into develop
Conflicts:
	include/cereal/types/tuple.hpp
2015-01-09 10:21:32 -08:00
Erich Keane
58d1675fe0 Changed tuple to generate names compile-time
tuple names are now generated at compile time.  Additionally,
a breaking-change of re-ordering tuples to be from first-last
rather than last-first has been included.
2014-12-22 13:06:24 -08:00
Erich Keane
a790351bef Implement Tuple Name Differences in XML/JSON
User rggjan requested that tuples provide a different name for each
element in this issue: https://github.com/USCiLab/cereal/issues/140.

This fix modifies tuple.hpp to generate tuple names in the order which
they are are placed in the tuple.  Note that this will appear to be a
countdown (tuple_element2, tuple_element1, tuple_element0) since tuples
are generated in reverse order.

Signed-off-by: Erich Keane <erich.keane@verizon.net>
2014-12-19 18:56:44 -08:00
Erich Keane
3d6cd67fe7 Implement Tuple Name Differences in XML/JSON
User rggjan requested that tuples provide a different name for each
element in this issue: https://github.com/USCiLab/cereal/issues/140.

This fix modifies tuple.hpp to generate tuple names in the order which
they are are placed in the tuple.  Note that this will appear to be a
countdown (tuple_element2, tuple_element1, tuple_element0) since tuples
are generated in reverse order.

Signed-off-by: Erich Keane <erich.keane@verizon.net>
2014-12-19 18:50:51 -08:00