From: Bartlomiej Grzelewski Date: Mon, 13 Jun 2016 09:42:22 +0000 (+0200) Subject: Add variadic template for deserialization X-Git-Tag: accepted/tizen/common/20160905.171334~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e61e12482aee565960ffa787a33e75e9bd265881;p=platform%2Fcore%2Fsecurity%2Fsecurity-manager.git Add variadic template for deserialization Similiar template already exist for serialization Change-Id: I922e8f08f658645a61b62a74eaa8928d7bb238c7 --- diff --git a/src/dpl/core/include/dpl/serialization.h b/src/dpl/core/include/dpl/serialization.h index 4782e1c..a370643 100644 --- a/src/dpl/core/include/dpl/serialization.h +++ b/src/dpl/core/include/dpl/serialization.h @@ -400,6 +400,13 @@ struct Deserialization { map = new std::map; Deserialize(stream, *map); } + + template + static void Deserialize(IStream& stream, T1 &first, T2 &second, Tail&... tail) + { + Deserialization::Deserialize(stream, first); + Deserialization::Deserialize(stream, second, tail...); + } }; // struct Deserialization } // namespace SecurityManager