Christoph Weiss
c0f2e28719
correct std::size_t to std::streamsize to avoid clang warning
2017-09-08 21:21:53 +02:00
Shane Grant
bcd69859c0
Merge branch 'atomic' of https://github.com/bluescarni/cereal into bluescarni-atomic
2017-09-08 11:57:04 -07:00
Shane Grant
cb78660421
Merge pull request #432 from furkanusta/fix416
...
Fix for #416 , Implicit falltrough warning on GCC7.1 (Re-sending)
2017-09-07 11:16:29 -07:00
Furkan Usta
f7baa90c23
Changed 'and' 'or' operators with their symbolic counterparts
...
Apparently literal words cause problems in MSVC
2017-09-07 19:33:02 +03:00
Shane Grant
7292a605dd
Merge pull request #430 from WSoptics/dynamic_init
...
fix CEREAL_*_DYNAMIC_INIT
2017-09-06 16:03:20 -07:00
Furkan Usta
01dd76f515
Added missing implicit fallthrough pragma (Related to #416 )
...
Also, this one fixes the forgotten pragma pop at the end of the header file
2017-09-04 13:20:58 +03:00
Furkan Usta
f698f33ca0
Workaround for #416
...
Instead of adding std::fallthrough, this one disables
implicit-fallthrough warnings via pragma push/pop mechanism
2017-09-04 13:17:00 +03:00
Christoph Weiss
baeb6d8b0e
fix CEREAL_*_DYNAMIC_INIT
2017-09-01 13:45:31 +02:00
Christoph Weiss
ebbf3a6768
fix -Wconversion warning in gcc7
2017-08-28 12:02:04 +02:00
Soroush Rabiei
72c83d9b04
Remove conflicting defines for Windows.h
...
* Some Windows SDK installations (like mine) may define `max' in
`Windows.h`, causing `std::numeric_limits::max()' cease to work.
Details: https://stackoverflow.com/q/27442885/275221
Signed-off-by: Soroush Rabiei <soroush.rabiei@gmail.com>
2017-08-26 14:11:27 +04:30
Shane Grant
123eeb55d6
initial deferment implementation
...
relates #185
2017-08-24 19:44:37 -07:00
Christoph Weiss
43077e7f03
correctly use std::streamsize instead of std::size_t in PortableBinaryArchive to silence clang warning
2017-08-24 10:17:26 +02:00
Christoph Weiss
d5b212629f
make CEREAL_CLASS_VERSION not create a warning (-Wunused-member-function) with clang
2017-08-22 17:36:45 +02:00
Christoph Weiss
c3eda13e9e
replace std::decay with std::remove_const
2017-08-17 10:00:51 +02:00
Christoph Weiss
e84a6735bd
fix std::unique_ptr<const T>
2017-08-16 18:28:27 +02:00
Christoph Weiss
015ed43eed
remove superfluous semicolon
2017-08-16 13:40:38 +02:00
Christoph Weiss
70754e2cab
replace noexcept with CEREAL_NOEXCEPT
2017-08-14 11:44:24 +02:00
Christoph Weiss
1947a96308
remove useless copies and move when appropriate
2017-08-11 10:42:36 +02:00
Christoph Weiss
8e25c2bb7e
replace std::decay_t<T> with std::decay<T>::type for C++11 compatibility
2017-08-11 10:07:00 +02:00
Christoph Weiss
ae9b1063f0
select correct remplate for std::vector<bool> and acknowledge that std::vector<bool> returns by copy
2017-08-10 15:12:08 +02:00
Philipp Krenz
508b02047f
fix compiler warnings
2017-07-25 17:10:05 +02:00
Philipp Krenz
63eee8104f
fix behavior for deserializing sharedptr to const obj
2017-07-21 14:09:53 +02:00
Shane Grant
aa891a42d7
Resolves #414
2017-06-26 13:42:08 -07:00
Shane Grant
fcef0da01a
Fix shadowing issue for #401 , recent osx compile issue re: #354
2017-05-05 11:37:12 -07:00
Shane Grant
950aca4523
Merge branch 'hoensr-xml-no-size-attributes' into develop
2017-05-05 11:09:34 -07:00
Shane Grant
35a36afb97
Standardize interface for options (xml)
...
see #401
2017-05-05 10:54:25 -07:00
Shane Grant
ad905576d2
Merge branch 'develop' of github.com:USCiLab/cereal into develop
2017-05-03 11:39:02 -07:00
Shane Grant
f031131130
modifications for g47 and comment out memory intensive testing
2017-05-03 11:38:35 -07:00
Shane Grant
c4dcc8d5de
Merge branch 'issue_354' into develop
...
still needs more work but this is an improvement for now
see #354
2017-05-03 11:11:08 -07:00
Robin Hoens
52b03d58c5
Add option to turn off the size=dynamic attributes of lists
2017-04-12 10:00:17 +02:00
Albert Ziegenhagel
7723503fcc
Add remove_reference to determine whether template argument to BinaryData is const
2017-04-11 10:32:55 +02:00
Shane Grant
68f56eed92
Remove undefined behavior, see #390
2017-04-10 11:22:38 -07:00
Shane Grant
676d329d81
adventures in microoptimization #354
2017-02-22 14:43:31 -08:00
Shane Grant
546fd9b896
tinkering on #354
2017-02-19 16:25:32 -08:00
Shane Grant
2590f219a2
Properly use multimap for lookup in poly casting
...
relates #356 , still need final testing on MSVC
2017-02-11 23:47:00 -08:00
Shane Grant
a91737466f
size_type now specified by macro CEREAL_SIZE_TYPE
...
resolves #379
2017-02-08 10:47:02 -08:00
Shane Grant
f69ad7cd9e
tab to space
2016-11-28 11:50:23 -08:00
Shane Grant
d21b0c0ab6
Merge branch 'laudrup-master' into develop
...
see #363
2016-11-28 11:47:53 -08:00
Shane Grant
e63f08f4d7
minor adjustments to casts, see comments on #363
2016-11-28 11:47:24 -08:00
David Hirvonen
6e717666f3
Remove spurious character
2016-11-26 12:31:56 -05:00
David Hirvonen
2e96b9915e
Add is_loading and is_saving values to cereal::{Input,Output}Archive
...
This provides compatibility for asymmetric serialize routines when transitioning from boost serialization and associated archive types.
See: https://github.com/USCiLab/cereal/issues/360
Example:
```
template <typename Archive>
void serialize(Archive &ar, const std::uint32_t version)
{
std::int16_t tmp = foo;
if(Archive::is_loading::value)
{
ar & tmp;
foo = tmp; // For illustration only
}
else
{
tmp = foo; // For illustration only
ar & tmp;
}
ar & foo;
}
```
2016-11-25 16:02:00 -05:00
Kasper Laudrup
9376ca6055
Don't use C style casts
...
Change C style casts to C++ static casts.
This makes the code compile with the -Wold-style-cast warning enabled
2016-11-23 01:34:53 +01:00
Shane Grant
72d79364c9
catch empty json, relates #359
2016-11-11 13:45:27 -08: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
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