From 4f40932a6b2eac8f8e21f841289e1b710c51bd65 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Thu, 15 Oct 2015 22:14:31 +0100 Subject: Use rvalue refs for serializer wrappers (sub-slot change required) --- slicer/slicer/slicer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slicer/slicer/slicer.h b/slicer/slicer/slicer.h index 196b765..f58e8e1 100644 --- a/slicer/slicer/slicer.h +++ b/slicer/slicer/slicer.h @@ -8,7 +8,7 @@ namespace Slicer { template Object - DeserializeAny(SerializerParams & ... sp) + DeserializeAny(SerializerParams && ... sp) { IceUtil::Handle> root = new ModelPartForRoot(); DeserializerPtr deserializer = new Deserializer(sp ...); @@ -18,14 +18,14 @@ namespace Slicer { template IceInternal::Handle - Deserialize(SerializerParams & ... sp) + Deserialize(SerializerParams && ... sp) { return DeserializeAny, SerializerParams...>(sp ...); } template void - SerializeAny(Object object, SerializerParams & ... sp) + SerializeAny(Object object, SerializerParams && ... sp) { IceUtil::Handle> root = new ModelPartForRoot(object); SerializerPtr serializer = new Serializer(sp ...); @@ -34,7 +34,7 @@ namespace Slicer { template void - Serialize(IceInternal::Handle object, SerializerParams & ... sp) + Serialize(IceInternal::Handle object, SerializerParams && ... sp) { SerializeAny(object, sp ...); } -- cgit v1.2.3