Commit Graph

42 Commits

Author SHA1 Message Date
Randolph Voorhies
9bd06b6118 Adding portability test 2014-03-11 16:28:37 -07:00
Randolph Voorhies
ba2ca7c94d Switching to CMake and splitting unittests 2014-03-11 14:50:04 -07:00
Shane Grant
89bcdc1404 32 vs 64 bit testing for portable binary
see #12
2014-02-22 23:02:12 -08:00
Shane Grant
8fd965819c Adding _CEREAL_NVP for internal loads
Closes #56
2014-02-15 12:32:17 -08:00
Shane Grant
e9bff3a493 shared_ptr for enable_shared_from_this libc++
Addresses a libc++ only issue.  See the bug report here: http://llvm.org/bugs/show_bug.cgi?id=18843
2014-02-14 15:20:48 -08:00
Shane Grant
436a0a275c g++ 4.7.3 compatability fixed
closes #38

Added a preprocessor define CEREAL_OLDER_GCC that exists if using
any GCC 4.7.x or earlier.  If this is defined some type traits change to
our original solution (prior to VS compatible), which is probably what we'd switch
to if VS ever gets around to fully supporting SFINAE and constexpr.

In map and set, as well as in unit tests, use insert instead of emplace for 4.7.x.
2013-12-22 13:25:06 -08:00
Shane Grant
456122cfd0 re-do fix for 4.7
beware using the wrong compiler, still uses typo fix
2013-12-22 12:41:18 -08:00
Shane Grant
402ff90c4e 4.7 compatability changes
-Convert to int with constexpr in reader/writer to avoid
 always false comparison error in gcc 4.7.3
-make clean now removes visual studio sandbox if built
-fixes to traits for 4.7, still more to do there
see #38
2013-12-22 12:32:54 -08:00
Shane Grant
10b7f7a00f Compiling with pedantic on
see issue #17
2013-12-21 00:08:37 -08:00
Shane Grant
f27eb02caf Compiling with clang and gcc with -Wshadow
See issue #17

Somewhere along the way we've also broken our ability to compile with GCC 4.7.3.  We'll have to decide if we care about
supporting 4.7.3 or not.  The changes that break this are:

-there is no emplace in std::map (or related) in 4.7.3
-there are some enable_ifs in rapidjson's writer.h that are always false (which is fine), but
GCC 4.7.3 doesn't like this
2013-12-20 20:22:17 -08:00
Shane Grant
cc9c4ac2b2 make all compiling with wextra
see #17
2013-12-20 11:51:45 -08: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
06f675743c fixing gcc errors 2013-07-17 12:16:44 -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
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
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
Shane Grant
9ed52f22a1 adding doxygen generation 2013-07-04 23:43:46 -07:00
Randolph Voorhies
34de565d68 Basic JSON saving works 2013-07-03 16:37:47 -07:00
Randolph Voorhies
9b303ccb4e Working on JSON 2013-07-03 16:06:05 -07:00
Shane Grant
3efeab031d fixing up polymorph prototype 2013-06-27 17:39:20 -07:00
Shane Grant
0414f5dcf6 foundations for polymorphism support 2013-06-27 17:12:42 -07:00
Awesome Robot
3c82b53157 adding another sandbox, fixed an include 2013-06-26 14:57:09 -07:00
Randolph Voorhies
24ad0341ad Added binary enum serialization 2013-06-19 17:56:30 -07:00
Randolph Voorhies
20ad9f5d8b Minor constructor error 2013-06-19 16:11:10 -07:00
Shane Grant
d5afb78fcc Adding chrono. Some docs/cleanup. NVP now works with R-values and l-values 2013-06-19 14:19:48 -07:00
Shane Grant
1b8dbfb96a Non default constructors now supported by pointers 2013-06-18 16:16:24 -07:00
Randolph Voorhies
5c3c162fd1 Added cereal::access for private members 2013-06-17 17:57:36 -07:00
Randolph Voorhies
18676e251f Restructuring 2013-06-17 16:17:20 -07:00
Shane Grant
30a1fa6d38 Adding initial performance testing
So far I've only played around with std::vector<double> for size 7 or size 1M, we are smaller when the header is a
significant portion and the same size (though always smaller due to no header) at larger sizes, but we basically run at
the same speed and same size for vectors of doubles
2013-06-16 19:10:09 -07:00
Randolph Voorhies
4aecb595d5 Empty class elision, and priority_queue unit tests 2013-06-14 18:05:08 -07:00
Randolph Voorhies
0dd44928c3 Added map unit tests.
Something funky is going on with the stream operator here, but whatever.
2013-06-14 14:45:11 -07:00
Shane Grant
e9d277025f const_cast for save(), seeking for binary_oarchive
Using const cast to get rid of having two versions of save (changed vector and array so far)

Initial implementation of seeking to allow saving and restoring position within a binary archive
2013-06-14 12:17:21 -07:00
Randolph Voorhies
480cfcc4b6 Added array unit tests 2013-06-13 17:54:42 -07:00
Randolph Voorhies
bb3f5409d8 Added unit tests for pointers 2013-06-13 17:02:46 -07:00
Randolph Voorhies
0186e16fcb Adding unit tests for POD types 2013-06-13 16:54:32 -07:00
Shane Grant
97304f8272 working on pointer support 2013-06-13 12:17:59 -07:00
Randolph Voorhies
1b7d5387d2 Starting a JSON archive 2013-06-12 20:37:36 -07:00
Randolph Voorhies
a5dcb04c97 First commit - basic split/serialize checking works 2013-06-11 18:18:21 -07:00