-
-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b86a974
commit 6ab55af
Showing
9 changed files
with
347 additions
and
133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#pragma once | ||
|
||
#include <cereal/cereal.hpp> | ||
#include <immer/box.hpp> | ||
|
||
namespace cereal { | ||
|
||
template <typename Archive, typename T, typename MemoryPolicy> | ||
void CEREAL_LOAD_FUNCTION_NAME(Archive& ar, immer::box<T, MemoryPolicy>& m) | ||
{ | ||
T x; | ||
ar(x); | ||
m = x; | ||
} | ||
|
||
template <typename Archive, typename T, typename MemoryPolicy> | ||
void CEREAL_SAVE_FUNCTION_NAME(Archive& ar, | ||
const immer::box<T, MemoryPolicy>& m) | ||
{ | ||
ar(m.get()); | ||
} | ||
|
||
} // namespace cereal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.