From f1ea89056938253289751c422c2b82977ee44aa3 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Aug 2023 14:39:05 +0100 Subject: Make [de]serializers on stack --- slicer/slicer/slicer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/slicer/slicer/slicer.h b/slicer/slicer/slicer.h index 5450722..66e4537 100644 --- a/slicer/slicer/slicer.h +++ b/slicer/slicer/slicer.h @@ -19,7 +19,7 @@ namespace Slicer { Object DeserializeAny(SerializerParams &&... sp) { - return DeserializeAnyWith(std::make_unique(std::forward(sp)...)); + return DeserializeAnyWith(Deserializer(std::forward(sp)...)); } template @@ -33,7 +33,7 @@ namespace Slicer { void SerializeAny(const Object & object, SerializerParams &&... sp) { - SerializeAnyWith(object, std::make_unique(std::forward(sp)...)); + SerializeAnyWith(object, Serializer(std::forward(sp)...)); } } -- cgit v1.2.3