Commit b1d23f3
committed
Add serialisation for akrzemi1::optional
This puts cereal from 1.2.2 to the latest develop branch, which includes support for serialising std::optional.
Added support to serialise akrzemi1::optional (copied the function to serialise std::optional).
This allows seemless loading and saving across the two different optionals.1 parent 04b637f commit b1d23f3
File tree
4 files changed
+67
-1
lines changed- 3rdparty
- include/eos/cpp17
- detail
4 files changed
+67
-1
lines changed- .gitignore+4-2
- .travis.yml+159-17
- CMakeLists.txt+11-9
- include/cereal/archives/binary.hpp+6-6
- include/cereal/archives/json.hpp+40
- include/cereal/archives/portable_binary.hpp+13-13
- include/cereal/archives/xml.hpp+75-16
- include/cereal/cereal.hpp+60-9
- include/cereal/details/helpers.hpp+36-2
- include/cereal/details/polymorphic_impl.hpp+61-29
- include/cereal/details/static_object.hpp+3-2
- include/cereal/details/traits.hpp+19-6
- include/cereal/external/base64.hpp+8-1
- include/cereal/external/rapidjson/internal/regex.h+7
- include/cereal/external/rapidxml/rapidxml.hpp+44-44
- include/cereal/external/rapidxml/rapidxml_print.hpp+2
- include/cereal/macros.hpp+11
- include/cereal/types/atomic.hpp+55
- include/cereal/types/memory.hpp+20-18
- include/cereal/types/optional.hpp+66
- include/cereal/types/polymorphic.hpp+13-11
- include/cereal/types/tuple.hpp+4-4
- include/cereal/types/variant.hpp+104
- include/cereal/types/vector.hpp+6-6
- unittests/CMakeLists.txt+4
- unittests/atomic.cpp+52
- unittests/atomic.hpp+170
- unittests/common.hpp+20
- unittests/cpp17/CMakeLists.txt+38
- unittests/cpp17/optional.cpp+57
- unittests/cpp17/optional.hpp+92
- unittests/cpp17/variant.cpp+97
- unittests/cpp17/variant.hpp+97
- unittests/defer.cpp+52
- unittests/defer.hpp+193
- unittests/load_construct.hpp+43
- unittests/memory.hpp+36-4
- unittests/polymorphic.hpp+277-2
- unittests/portable_binary_archive.hpp+1-1
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| 117 | + | |
117 | 118 | | |
118 | 119 | | |
119 | 120 | | |
| |||
Lines changed: 64 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
0 commit comments