Take PrimitiveWrapper<T> value by rvalue

This commit is contained in:
Robbert van der Helm
2020-12-14 18:22:12 +01:00
parent bb110e8cbb
commit 2becd420b2
+1 -1
View File
@@ -69,7 +69,7 @@ template <typename T>
class PrimitiveWrapper {
public:
PrimitiveWrapper() {}
PrimitiveWrapper(T value) : value(value) {}
PrimitiveWrapper(T&& value) : value(value) {}
operator T() const { return value; }