Commit Graph
21 Commits
Author SHA1 Message Date
Shane Grant 29578c8c48 Support for std::enable_shared_from_this
Fixes #47

When we detect a shared_ptr being loaded in load_and_allocate that
also is of a type that derives from enable_shared_from_this, extra
work is done to save the state of the enable_shared_from_this before
the user gets to meddle with it via placement new inside of
cereal::allocate.  State is restored after getting back from the user.
2014-02-09 12:31:32 -08:00
Shane Grant f8ec6251f0 Adding some specialize macros
Adding some macros for specialization in case people feel like
typing less scary looking template specialization code.

Modified static assert to remind people that specialization exists.

See issue #25
2014-01-24 15:47:33 -08:00
Shane Grant b85a2ad7bb Adds denormal support for json
see issue #31
2013-12-20 11:10:49 -08:00
Shane Grant 3411b0f3a8 testing boost ops 2013-10-17 15:22:17 -07:00
Shane Grant a5641c5421 implements operator& and <<, >> overloads for boost compat
see #8
2013-10-17 15:19:48 -07:00
Shane Grant 7bd5dffff9 working on json unordered loads, almost settled on a solution 2013-10-16 17:16:22 -07:00
Shane Grant 767c9ee06f Making makefile a bit nicer, moving some code around in xml.hpp to better organize it 2013-10-09 11:23:08 -07:00
Shane Grant c6b485ea69 done 2013-08-26 22:20:27 -07:00
Shane 66c9bc3647 can't use initializer lists in unittests for vs, need to take them out 2013-07-17 22:49:17 -07:00
Shane fa9312534d everything working in VS, haven't run unit tests but sandboxes are looking good
polymorphic stuff seems fine.  finish up unit tests then test this back on linux
2013-07-16 22:33:23 -07:00
Shane Grant 59c0a9ba8c fixed copyright in tests 2013-07-14 13:42:47 -07:00
Shane Grant a047688c5c documentation and fixed a typo 2013-07-09 16:08:25 -07:00
Shane Grant 237d05b1ba updating doxygen 2013-07-09 14:38:51 -07:00
Shane Grant 048c00a92f load binary working properly, everything looks good for json 2013-07-09 10:46:13 -07:00
Shane Grant 525341a9d8 itsNextName properly initialized to nullptr for json output 2013-07-09 10:32:50 -07:00
Randolph Voorhies 035b01b473 JSON looking good, just need to fix up all unit tests 2013-07-08 18:19:12 -07:00
Randolph Voorhies f830367d9d Writing arrays now works. Reading is next 2013-07-08 17:14:40 -07:00
Randolph Voorhies 4631cac259 Object serialization seems to work 2013-07-08 15:14:56 -07:00
Randolph Voorhies f0216012be Basic single level JSON reading works 2013-07-08 15:00:25 -07:00
Shane Grant 8d4a4194e2 removed ^M from some files, skeleton of input json 2013-07-08 11:42:34 -07:00
Randolph Voorhies 34de565d68 Basic JSON saving works 2013-07-03 16:37:47 -07:00