summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slicer/slicer/slicer.h4
1 files 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<Object>(std::make_unique<Deserializer>(std::forward<SerializerParams>(sp)...));
+ return DeserializeAnyWith<Object>(Deserializer(std::forward<SerializerParams>(sp)...));
}
template<typename Object>
@@ -33,7 +33,7 @@ namespace Slicer {
void
SerializeAny(const Object & object, SerializerParams &&... sp)
{
- SerializeAnyWith(object, std::make_unique<Serializer>(std::forward<SerializerParams>(sp)...));
+ SerializeAnyWith(object, Serializer(std::forward<SerializerParams>(sp)...));
}
}