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
Shane Grant
f0b063b71f
Merge branch 'master' of github.com:USCiLab/cereal
2013-07-11 15:55:57 -07:00
Shane Grant
9cc6828d0d
fixed typo in readme example
2013-07-11 15:55:42 -07:00
Shane Grant
1f0e7dcdaa
Update README.md
2013-07-11 12:42:47 -07:00
Shane Grant
8375dbca75
dox footer got left out
v0.9.0
2013-07-11 11:41:14 -07:00
Shane Grant
03d11de242
Replaced <COPYRIGHT HOLDER> in license with actual names
2013-07-11 11:01:27 -07:00
Shane Grant
a649731467
fixing update doc script to make directory
2013-07-10 14:10:41 -07:00
Shane Grant
6c5d796d6d
adding analytics to dox
2013-07-10 14:08:48 -07:00
Randolph Voorhies
4ced7dc471
Remove doc and coverage directories before copying new
2013-07-10 13:55:21 -07:00
Randolph Voorhies
6549048203
Making updatecoverage executable
2013-07-10 13:46:10 -07:00
Randolph Voorhies
d5b847b888
Making updatecoverage.sh script
2013-07-10 13:45:44 -07:00
Randolph Voorhies
aaf8b5dea3
Removed unittests.cpp from code coverage
2013-07-10 13:29:38 -07:00
Randolph Voorhies
e518eec462
Coverage updates
2013-07-10 13:16:17 -07:00
Randolph Voorhies
cd9d8c4b31
Working on coverage
2013-07-10 13:14:02 -07:00
Randolph Voorhies
4420489a21
Merge branch 'master' of github.com:USCiLab/cereal
...
Conflicts:
Makefile
2013-07-10 11:50:14 -07:00
Randolph Voorhies
381eb3d1c7
Starting to add coverage to makefile
2013-07-10 11:49:47 -07:00
Shane Grant
7461a8d1c8
fixed minor gcc comparison error in sandbox.cpp
2013-07-10 11:37:53 -07:00
Randolph Voorhies
3f5ac02c70
Fixed GCC compile error
2013-07-10 11:28:15 -07:00
Randolph Voorhies
195668062e
Adding updatedoc.sh script
2013-07-10 11:17:08 -07:00