diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-15 22:14:31 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-10-15 22:14:31 +0100 |
commit | 4f40932a6b2eac8f8e21f841289e1b710c51bd65 (patch) | |
tree | 1734bcfa9c06f7e24080c2b38c113f91fe2d6de5 | |
parent | Tests for invalid enumeration values in documents. (diff) | |
download | slicer-4f40932a6b2eac8f8e21f841289e1b710c51bd65.tar.bz2 slicer-4f40932a6b2eac8f8e21f841289e1b710c51bd65.tar.xz slicer-4f40932a6b2eac8f8e21f841289e1b710c51bd65.zip |
Use rvalue refs for serializer wrappers (sub-slot change required)
-rw-r--r-- | slicer/slicer/slicer.h | 8 |
1 files 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 <typename Deserializer, typename Object, typename ... SerializerParams> Object - DeserializeAny(SerializerParams & ... sp) + DeserializeAny(SerializerParams && ... sp) { IceUtil::Handle<ModelPartForRoot<Object>> root = new ModelPartForRoot<Object>(); DeserializerPtr deserializer = new Deserializer(sp ...); @@ -18,14 +18,14 @@ namespace Slicer { template <typename Deserializer, typename Object, typename ... SerializerParams> IceInternal::Handle<Object> - Deserialize(SerializerParams & ... sp) + Deserialize(SerializerParams && ... sp) { return DeserializeAny<Deserializer, IceInternal::Handle<Object>, SerializerParams...>(sp ...); } template <typename Serializer, typename Object, typename ... SerializerParams> void - SerializeAny(Object object, SerializerParams & ... sp) + SerializeAny(Object object, SerializerParams && ... sp) { IceUtil::Handle<ModelPartForRoot<Object>> root = new ModelPartForRoot<Object>(object); SerializerPtr serializer = new Serializer(sp ...); @@ -34,7 +34,7 @@ namespace Slicer { template <typename Serializer, typename Object, typename ... SerializerParams> void - Serialize(IceInternal::Handle<Object> object, SerializerParams & ... sp) + Serialize(IceInternal::Handle<Object> object, SerializerParams && ... sp) { SerializeAny<Serializer>(object, sp ...); } |