Shane Grant
15c73394a9
more conversions #139
2016-11-01 11:59:02 -07:00
Shane Grant
928cd36335
more conversions to CHECK_EQ
...
see #139
2016-11-01 11:41:28 -07:00
Shane Grant
0a262ece48
More tests split, switch to CHECk_EQ over CHECK
...
see #139
2016-11-01 11:36:22 -07:00
Shane Grant
671999e4ea
Initial progress on removing boost test and moving to doctest to better support modules
...
relates #123
2016-10-28 14:28:37 -07:00
Shane Grant
195c0bf229
Merge pull request #355 from drivehappy/develop
...
Fix bitset loading when bits are already set.
2016-10-28 11:30:48 -07:00
drivehappy
34bb0d9494
Clear all bits first before deserializing, this should be faster than individually clearing them.
2016-10-28 11:19:15 -07:00
drivehappy
e597e03f8a
Fix bitset loading when bits are already set.
2016-10-28 10:44:39 -07:00
Shane Grant
d27cc338d2
g++47 support fix #354
2016-10-27 13:20:23 -07:00
Shane Grant
74030ce9e2
Removing debug from prev commit for new polymorphic chaining
...
-Also forgot to mention that I think there was a bug with upcasting before where the casting was
incorrectly done in the reverse order.
-relates #354
2016-10-27 12:21:48 -07:00
Shane Grant
bf0f9aee1c
New implementation for polymorphic chaining
...
-This version has all of the debug messages left in, next commit will remove them
-Algorithm description provided in comments
-relates #354
2016-10-27 12:18:35 -07:00
Shane Grant
fc57d93847
Merge branch 'auric-patch-1' into develop
...
see #345
2016-10-12 11:00:31 -07:00
Shane Grant
8c1517d1b0
Merge branch 'patch-1' of https://github.com/auric/cereal into auric-patch-1
2016-10-12 10:57:19 -07:00
Igor
96deb7e9d3
Update static_object.hpp
2016-10-12 10:47:33 +03:00
Igor
74e0b1b698
Update static_object.hpp
...
removed empty extra line
2016-10-12 10:47:01 +03:00
Igor
500e7a0188
Update static_object.hpp
...
I cannot understand what is going on here with `static T & instance;`, I propose to do not change `create()`. But it would be better if someone explain what is happening here :)
2016-10-12 10:45:37 +03:00
Igor
e715149f4d
Update static_object.hpp
...
fixed misprint
2016-10-12 10:35:38 +03:00
Shane Grant
f4ae56a19b
Merge branch 'dlardi-register-chainable-relations-fix' into develop
...
see #335
2016-10-11 14:58:09 -07:00
Shane Grant
383cea57eb
Realized that the multimap was to catch multiple paths within a single iteration.
...
Instead of using a multimap, we really just want the shortest path found per iteration.
Went back to a map, if a shorter path is found before we commit the changes, stage the shorter one instead.
2016-10-11 14:57:19 -07:00
Shane Grant
e080c31867
Merge branch 'register-chainable-relations-fix' of https://github.com/dlardi/cereal into dlardi-register-chainable-relations-fix
2016-10-11 11:55:27 -07:00
Shane Grant
3541f6588c
Merge branch 'junghans-Werror' into develop
...
see #337
2016-10-11 11:51:07 -07:00
Shane Grant
c51095f9d3
Reverse from default negation to avoid potential confusion
...
relates #337
2016-10-11 11:50:28 -07:00
Shane Grant
4854ed5380
Merge branch 'kklouzal-develop' into develop
...
see #347 , #346
2016-10-11 11:44:25 -07:00
Shane Grant
80c518bcfc
Merge branch 'develop' of https://github.com/kklouzal/cereal into kklouzal-develop
2016-10-11 11:36:41 -07:00
Shane Grant
f414a41a76
Merge branch 'erichkeane-fix_check' into develop
...
relates #342
2016-10-09 21:38:36 -07:00
Shane Grant
c7b33a5a9c
Add polymorphic dtor for all tests in polymorphic
...
see #349
2016-10-09 21:34:44 -07:00
Shane Grant
c99294ea91
Merge branch 'Enhex-patch-1' into develop see #351
2016-10-09 21:15:29 -07:00
Enhex
e694a6311a
Replaced hardcoded rapidsjon namespacing with CEREAL_RAPIDJSON_NAMESPACE
2016-10-08 22:58:31 +03:00
Caspar Kielwein
a06680868e
Add cereal.doxytags as tagfile to allow external projects to link to cereal documentation.
2016-10-02 16:09:04 +02:00
Caspar Kielwein
3fb59dbe6c
Build doxygen documentation with separate CMakeLists.
...
Extracted CMakelists.txt to doc subdirectory.
Changed paths in doxyfile.in and CMakeLists accordingly.
added doc as subdirectory in main CMakeLists.txt.
2016-10-02 15:53:28 +02:00
KKlouzal
3d5a77d2c3
Fixed Internal Cereal Includes
2016-09-20 23:29:05 -07:00
Igor
adea360c7a
Use statics initialization on demand fixed #331
...
Fixed crash CEREAL_THREAD_SAFE=1 with polymorphic class. Crash happened because StaticObject<T>::instanceMutex not initialized when StaticObject<T>::lock() called for the first time. Basically it is better to use static vars inside static functions to have predefined order of construction like it is done in StaticObject<T>::getInstance(), which calls create and forces instantiation at pre-execution time.
Also in this commit removed static T &instance; since it is possible that there were be two instances created
1) template <class T> T & StaticObject<T>::instance = StaticObject<T>::create();
2) inside StaticObject<T>::create()
2016-09-16 20:18:49 +03:00
Christoph Junghans
b8d9acc502
cmake: allow dropping -Werror from c++ flags
2016-09-07 15:57:57 -06:00
Erich Keane
b9c424e06a
Avoid accidentally using the "check" macro on OSX
...
Fix for #341 , #273 , and #104 . Replace usages of "check(" with
"(check)(", which will prevent us from colliding with the macro defined
in OSX's Assert macros.
2016-09-07 11:55:28 -07:00
dlardi
c83a7f99e6
'auto const &' used for range-based loops
2016-09-01 18:41:15 +03:00
dlardi
cd37b64b78
Iterative searching of chainable relations added
2016-08-30 15:12:37 +03:00
dlardi
d16f88da40
Register of chainable relations fix
2016-08-25 16:12:41 +03:00
Shane Grant
bd839ccb47
Merge branch 'develop' for 1.2.1
v1.2.1
2016-08-10 11:50:19 -07:00
Shane Grant
1e5e648918
nan support following #300 (see #285 )
2016-08-05 13:48:53 -07:00
Shane Grant
0bfa9adf27
Update rapidjson to ab791ae
...
relates #300
2016-08-05 11:21:42 -07:00
Shane Grant
f053576858
Add CEREAL_NOEXCEPT to destructors for gcc 4.7.3
...
see #311
2016-07-29 15:01:50 -07:00
Shane Grant
6ff90841a5
Merge branch 'ChrisBFX-issue_315' into develop
...
see #315
2016-07-29 13:46:44 -07:00
Shane Grant
fb7fd75954
Changes to support thread safety
...
-Make CEREAL_THREAD_SAFE be 0 or 1 instead of present or not present
-Move CEREAL_NOEXCEPT to macros.hpp
-instead of individual locks, can now use StaticObject::lock() to request a lock if CEREAL_THREAD_SAFE is enabled. If
not enabled, this call returns an empty object. The lock returned acts just like std::lock_guard, but uses
std::unique_lock internally
-Made a bunch of requests to StaticObject::getInstance const
-Added first stab at multithreaded tests with versioning and polymorphism
2016-07-29 13:40:49 -07:00
Christopher Bläsius
869a132f1b
missing reference
2016-07-28 12:26:35 +02:00
Christopher Bläsius
eb5f8fb4cd
cmake option if statement
2016-07-28 12:24:06 +02:00
Christopher Bläsius
39d1b45dfc
yet another missing #ifdef
2016-07-28 12:19:32 +02:00
Christopher Bläsius
d7f96ac80e
missing #ifdefs
2016-07-28 12:15:31 +02:00
Christopher Bläsius
73b2f8b1ec
add new compile option "THREAD_SAFE" for enabling mutex locks on static objects
2016-07-28 11:49:10 +02:00
Shane Grant
42a45b6e15
Merge branch 'develop' for 1.2 release
v1.2.0
2016-06-30 14:39:31 -07:00
Shane Grant
58d244edb7
fix uninit valgrind error for base ctor in diamond inheritance
2016-06-30 14:38:54 -07:00
Shane Grant
0645af74f9
Merge branch 'develop' for release 1.2
2016-06-30 13:34:55 -07:00