9 Commits

Author SHA1 Message Date
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
2015-04-04 18:19:22 -07:00
Shane Grant
26d31872e3 Update copyright 2013 -> 2014 2014-03-20 20:36:04 -07:00
Shane Grant
348d2d763d Updating unit tests to include minimal specializations 2014-03-20 14:18:56 -07:00
Shane Grant
dd6cf4c3cf Now emitting errors if mixing versioning on output serialization
If someone attempts to have both a versioned and non-versioned serialization
function, they will get a compile time error.

relates to improvements in #23
2014-03-15 21:21:02 -07:00
Shane Grant
5c87e68cb9 Increasing readability of static_assert on clang and other compilers that don't
actually print newlines
2014-03-15 19:36:59 -07:00
Shane Grant
22f0070a83 making versioned compatible with specialization
Also fixed a bug with some type traits that would erroneously return true if
an odd number of boolean variables were true when the desired behavior was to return
false if more than one boolean variable was true.

Need to revise the no matching serialization to properly fire if a type is specialized
but has both versioned and non-versioned functions of the specialization type.
2014-03-15 19:09:57 -07:00
Shane Grant
2225fcaf91 specialize_serialize now works with versioning
todo: load, save, and non member versions of them all
2014-03-15 18:24:40 -07:00
Shane Grant
f6c311fb7c Adding license and moving boost include for MSVC 2014-03-11 23:12:07 -07:00
Randolph Voorhies
ba2ca7c94d Switching to CMake and splitting unittests 2014-03-11 14:50:04 -07:00