From 71dc824780f7b258750edc8638b356f3afe44b16 Mon Sep 17 00:00:00 2001 From: Nils Wentzell Date: Wed, 14 Aug 2024 16:52:17 -0400 Subject: [PATCH] Update example API to include serialization function --- c++/app4triqs/app4triqs.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/c++/app4triqs/app4triqs.hpp b/c++/app4triqs/app4triqs.hpp index f9663000..d7ce7fc1 100644 --- a/c++/app4triqs/app4triqs.hpp +++ b/c++/app4triqs/app4triqs.hpp @@ -59,7 +59,8 @@ namespace app4triqs { friend void h5_read(h5::group grp, std::string subgroup_name, toto &m); /// Serialization - template void serialize(Archive &ar) { ar &i; } + void serialize(auto &ar) const { ar &i; } + void deserialize(auto &ar) { ar &i; } }; /**