937 Commits

Author SHA1 Message Date
Shane Grant
6c5e776efb fixing issues with any and noconvert in traits
see #23
2014-03-17 19:33:48 -07:00
Shane Grant
02517c27f9 work on traits
see #23
2014-03-17 18:48:51 -07:00
Matt Clarkson
e7f7692d6a Preprocessor defines for serialization function names
The following preprocessor defines have been added:

 - CEREAL_SERIALIZE_FUNCTION_NAME
 - CEREAL_SAVE_FUNCTION_NAME
 - CEREAL_LOAD_FUNCTION_NAME

These defines specifiy the name of the cereal serialization/deserialization
functions so that they can be customised by users. This is especially useful if
the user would like to have capitialized function names.
2014-03-17 15:56:18 +00:00
Shane Grant
db8b0919a0 traits improvements
see #23
2014-03-16 18:36:28 -07:00
Shane Grant
f51145c906 Cleaning up prior work on traits for load_minimal
writing type traits is a wonderful battle against the compiler

see #23
2014-03-16 17:57:04 -07:00
Shane Grant
5116ced7ba progress on load type traits
see #23
2014-03-16 17:39:27 -07:00
Shane Grant
454d3ca438 update bad serialize static_assert 2014-03-15 21:35:04 -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
be617d0a62 Adding save_minimal to many other traits 2014-03-15 17:51:55 -07:00
Shane Grant
88d76b3866 Detecting invalid return types for save_minimal
both member and non-member, static_asserts look good
2014-03-15 17:42:01 -07:00
Shane Grant
953090e645 Progress on traits for #23
Re-made a repo based on a more recent version of develop.
Syntax for save_minimal looking good so far.
2014-03-15 17:27:51 -07:00
Shane Grant
5f3e9fb9f1 code tidy up 2014-03-15 14:29:37 -07:00
Shane Grant
ab5a89a16f Fixing support for several numeric types in JSON
longs should now properly serialize under 32 or 64 bit machines.

long long, unsigned long long, and long double now serialize as base10
strings instead of base64.

see issue #72
2014-03-14 23:31:25 -07:00
Shane Grant
33180eac14 doc update and fix minor bug with vector test 2014-03-14 00:20:41 -07:00
Shane Grant
fd02187150 Making VS happy with #64 2014-03-13 22:55:43 -07:00
Shane Grant
8acd3dc767 Fixes related to changes for #64 2014-03-13 22:33:45 -07:00
Shane Grant
c8b6e2444a Merge branch 'new_options' into develop 2014-03-13 22:30:10 -07:00
Shane Grant
5a303d33e2 Finishing up options
see #64
2014-03-13 22:28:29 -07:00
Shane Grant
1364e5faa9 turn off valgrind because it takes too long
relates #75
2014-03-13 15:30:38 -07:00
Shane Grant
7622deef3c making travis call valgrind 2014-03-13 13:19:38 -07:00
Shane Grant
ae3a27510f minor formatting 2014-03-13 12:20:16 -07:00
Shane Grant
2090646c47 Adding valgrind to travis 2014-03-13 12:18:19 -07:00
Shane Grant
2a0510506c No more messing up enable_shared_from_this refcounts
Modified the polymorphic saving of pointers to use a second
shared_ptr to manage the refcount of the wrapper proper polymorphic
shared_ptr (previously we were using an empty deleter).  The result of
this is that the wrapper doesn't actually manage the pointer it holds,
it just allows access to it so long as there is still a refcount in
the second refcount pointer.

Modified the polymorphic wrapper and enable shared from this state
saver to be RAII style.
2014-03-13 11:53:24 -07:00
Shane Grant
b7fd587b9e Befriending cereal::access now works with construct
see #73
2014-03-12 17:01:22 -07:00
Shane Grant
afdeede5b0 adding tests related to issue #74 2014-03-12 16:23:08 -07:00
Shane Grant
98959ab40a Fixing MSVC unit testing for new format 2014-03-11 23:33:28 -07:00
Shane Grant
f6c311fb7c Adding license and moving boost include for MSVC 2014-03-11 23:12:07 -07:00
Shane Grant
5323a1dbaa uncommenting chrono test 2014-03-11 23:00:24 -07:00
Shane Grant
03492153df Merge branch 'develop' of github.com:USCiLab/cereal into develop
Conflicts:
	unittests.cpp
2014-03-11 22:55:14 -07:00
Shane Grant
e68c963f1f formatting 2014-03-11 22:52:03 -07:00
Shane Grant
e97ce47048 Commenting out clang for now 2014-03-11 18:34:48 -07:00
Randolph Voorhies
52504494a2 Adding travis tag to readme 2014-03-11 18:34:07 -07:00
Shane Grant
34051cb612 Whoops, wrong clang installed 2014-03-11 18:21:31 -07:00
Shane Grant
2f65458ddf Using clang 3.3 for travis build 2014-03-11 18:18:21 -07:00
Shane Grant
13ec02cc5d ia32-libs causing problems, trying without 2014-03-11 18:09:20 -07:00
Shane Grant
f827b5e28e Adding 32bit libs to travis 2014-03-11 18:05:44 -07:00
Shane Grant
b69ab4c0e0 Fixing compilers in travis config 2014-03-11 18:01:34 -07:00
Shane Grant
9fe5c00d4a Updating travis build 2014-03-11 17:55:33 -07:00
Shane Grant
27d47edd3d Updating scripts 2014-03-11 17:53:19 -07:00
Shane Grant
1fba852953 Trying to get travis working 2014-03-11 17:45:40 -07:00
Shane Grant
dbf6a61d19 Adding travis build file 2014-03-11 17:39:36 -07:00
Shane Grant
06255cef01 Adding 32-bit tests (not working for now) 2014-03-11 17:38:51 -07:00
Shane Grant
cf7a106515 doxygen fixes 2014-03-11 17:29:32 -07:00
Shane Grant
43855f2e5c Added update-doc target 2014-03-11 17:23:23 -07:00
Shane Grant
a6e144a5a2 Working on update-doc 2014-03-11 17:06:58 -07:00
Shane Grant
a9d711060b Adding doc target 2014-03-11 17:02:36 -07:00
Randolph Voorhies
9bd06b6118 Adding portability test 2014-03-11 16:28:37 -07:00