mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Take PrimitiveWrapper values by value
Should not make any difference here anyway since we're dealing with primitives.
This commit is contained in:
@@ -96,7 +96,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