mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 03:50:11 +02:00
Take PrimitiveWrapper<T> value by rvalue
This commit is contained in:
@@ -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; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user