mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-10 04:30:12 +02:00
Take PrimitiveWrapper<T> value by rvalue
This commit is contained in:
@@ -69,7 +69,7 @@ template <typename T>
|
|||||||
class PrimitiveWrapper {
|
class PrimitiveWrapper {
|
||||||
public:
|
public:
|
||||||
PrimitiveWrapper() {}
|
PrimitiveWrapper() {}
|
||||||
PrimitiveWrapper(T value) : value(value) {}
|
PrimitiveWrapper(T&& value) : value(value) {}
|
||||||
|
|
||||||
operator T() const { return value; }
|
operator T() const { return value; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user