Shane Grant
92559772f1
added unit test for unordered loads and fixed an error with loading/saving vectors of bools.
...
unit test is currently crashing on the xml load test
2013-09-01 16:11:36 -07:00
Shane Grant
04430f32ba
Unordered loads looking good for XML, needs better testing though.
2013-09-01 15:18:54 -07:00
Shane Grant
0a35bd3dc8
Initial go at out of order loading working
2013-08-30 11:24:09 -07:00
Shane Grant
c6b485ea69
done
2013-08-26 22:20:27 -07:00
Shane Grant
8af4468652
Merge pull request #18 from bastih/master
...
Fix clang++ compiler error
v0.9.1
2013-08-26 12:02:38 -07:00
Sebastian Hillig
91efd0b6ed
Replace size_t with size_type
...
* fixes a compiling error with recent clang++
2013-08-25 10:44:52 +02:00
Shane Grant
373594e5a3
Merge branch 'vs2012' into develop
...
Conflicts:
performance.cpp
2013-07-22 10:33:14 -07:00
Shane Grant
d83b977062
Merge branch 'develop'
2013-07-22 10:05:19 -07:00
Shane Grant
ba3505536d
removing unused Void typetraits class
2013-07-22 10:00:10 -07:00
Shane Grant
c2a47f51b5
Fixing performance timing output to match that from develop branch
...
Adding documentation to MSVC only JSON changes for saving
2013-07-22 09:49:56 -07:00
Shane
b48f57c23b
unit tests and end everything else building and working both 32bit and 64bit
2013-07-21 23:30:09 -07:00
Shane
fdf23030c2
fixed version for performance
2013-07-21 21:11:01 -07:00
Shane
845d53e594
Adding performance project
2013-07-21 21:03:27 -07:00
Shane
de137bbc70
unit tests passing under vs2013 preview (32 bit release)
...
Still todo:
* Build under debug/release for both 32 and 64 bit
* make a project for performance
* clean up code specific for vs and take a careful look at the changes that json.hpp needed
2013-07-19 23:25:04 -07:00
Shane
9e7dee7ad4
getting closer to running unittests
2013-07-19 23:06:30 -07:00
Shane
2d543a45e2
changed to using automatic linking for boost, now linking against dlls
2013-07-19 22:34:43 -07:00
Shane
da03627ff1
Removed some (but not all) of the line endings I accidentally added while in VS.
...
Fixed a bunch of issues related to compiling unittests on VS.
Having a problem linking against boost unit tests, so can't run the tests yet.
2013-07-18 21:42:37 -07:00
Shane Grant
6c2aca9584
Update README.md
2013-07-18 15:04:36 -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
c1bbf97b2e
Adding unit test project
2013-07-17 20:15:29 -07:00
Shane Grant
71fccb0b52
formatting, everything compiling properly under gcc/clang
2013-07-17 13:44:34 -07:00
Shane Grant
9ee407b1ab
removing ==1 from trait checks
2013-07-17 12:20:08 -07:00
Shane Grant
06f675743c
fixing gcc errors
2013-07-17 12:16:44 -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
bc3d236031
removed sizeof_array since sizeof() does the same thing.
...
modified array to use sizeof(array) instead of sizeof(T) * N
modified C style arrays to use sizeof() and proplery check for arithmetic types before doing a binary serialization
2013-07-16 14:15:04 -07:00
Shane
bdc16278fc
vs project fun, polymorphic support not yet working
2013-07-15 22:32:40 -07:00
Shane
4deef5c544
New solution
2013-07-15 21:52:37 -07:00
Shane
2c522cb0db
cleaning up projects
2013-07-15 21:49:05 -07:00
Shane
d0809b6601
moving vs stuff into vs folder
2013-07-15 21:12:47 -07:00
Shane
7e2d30a244
all archives now compiling
...
had to make a few changes to rapidjson since it uses constexprs in one location,
also had to make sure we used the correct sprintf in a place where we inserted the code
2013-07-15 21:10:59 -07:00
Shane
d326aad555
binary archive looks like it is working, putting in some static_casts to quiet down some warnings
2013-07-15 20:51:00 -07:00
Shane
67c3370ab9
XML Archive working on visual studio 2013 preview
...
I tried out a few things with traits to try and get things like:
template <class Archive>
void load( Archive const & ar, MyType const & t ) {}
to be errors (note the const). I don't think it's possible to detect this stuff
in the traits that check if these exist, but we can probably catch it in the processImpls
2013-07-15 20:45:09 -07:00
Shane Grant
0acb7ee2ba
adding a few more performance tests
...
we're pretty good on every metric tested so far except for vectors of strings, which
for some reason we are slower than boost at. vectors of binary types are basically the same, and vectors of arbitrary
structs are fine, as is individual string processing.
2013-07-15 15:57:49 -07:00
Shane
b562762291
more progress, everything compiles except portable_binary and json. Archiving not working yet.
2013-07-15 00:46:00 -07:00
Shane
e00a74ccfc
traits nearly done, looking good so far
2013-07-14 22:41:56 -07:00
Shane
e9bf7d5f1c
Adding visual studio stuff to ignore list, progress on traits.
...
Tried to detect a case where archives were marked as const but this is harder than it seems. Now detecting if load or serialize incorrectly marke their type parameters as const (or are const member functions)
2013-07-14 22:02:25 -07:00
Shane
f2dd043daa
Working on type traits compatability for visual studio, not as terrible as I thought
2013-07-14 19:29:12 -07:00
Shane Grant
59c0a9ba8c
fixed copyright in tests
2013-07-14 13:42:47 -07:00
Shane Grant
ec4589b4e0
added warnings if not ieee 754, closes #6
2013-07-14 13:38:15 -07:00
Randolph Voorhies
bfe2289636
Changed size_t to cereal::size_type everywhere.
...
This is to ensure binary compatability between machines of different bit persuasions. cereal::size_type is typedef'd to uint64_t in helpers.hpp for now, but as soon as our 128 bit machines arrive we can change this with a one liner.
closes #10 .
2013-07-13 16:28:27 -07:00
Randolph Voorhies
8f367b6502
Need to include types/deque for stack also
2013-07-13 15:49:11 -07:00
Randolph Voorhies
46a1133d03
Queue needs to include deque for the default container
2013-07-13 15:46:58 -07:00
Shane Grant
a00597460c
Fixed a valgrind uninitialized warning for portable_binary
...
Progress towards issue#9, modified unique_ptr<void> to use our empty deleter. Can't do a full test with libc++ because
of various linker errors related to my configuration of libc++. No change in behavior under libstdc++.
2013-07-13 10:48:38 -07:00
Shane Grant
66fe64f8b3
Merge pull request #7 from neomantra/gcc4.7
...
Minor changes to support gcc 4.7.3 thanks to neomantra. Tested with no issues under 4.7.3 and 4.8.1.
2013-07-12 15:34:19 -07:00
Shane Grant
a959458344
adding portable binary to unit tests
2013-07-12 15:17:37 -07:00
Shane Grant
f6497be17d
first implementation of portable binary archive
2013-07-12 14:52:28 -07:00
Shane Grant
59cc5cfaf7
reverting back to original CEREAL_REGISTER_TYPE impl
2013-07-12 12:14:52 -07:00
Shane Grant
1e8e53ff74
renamed binary_detail namespace to variant_detail
2013-07-12 10:49:54 -07:00
Shane Grant
49747ed000
Adding additional macros to enable polymorphic support across compilation units.
...
closes #5
2013-07-12 10:48:15 -07:00
Evan Wies
3d88d45031
Minor changes to support gcc 4.7
...
gcc 4.7 has significant C++11 support, but is missing some features.
See http://gcc.gnu.org/gcc-4.7/cxx0x_status.html
* #include <stdexcept> was needed to find std::runtime_error
* gcc 4.7 does not support "Inheriting constructors". This was fixed by using
the traditional method of explicitly declaring the constructors.
* Some lambda expressions needed extra love. More color here:
http://stackoverflow.com/questions/4940259/c11-lambdas-require-capturing-this-to-call-static-member-function
These changes are minor so I did not use gcc version detection via preprocessor.
2013-07-12 13:33:53 -04:00