Make Preference implicit conversion operator return a reference

Instead of copying. We can let the caller decide if they want to copy.

Also helps with #756.
This commit is contained in:
Arthur Eubanks
2025-04-23 20:33:27 -07:00
committed by teejusb
parent 57935cee81
commit 0ba8230b7e
+1 -1
View File
@@ -120,7 +120,7 @@ public:
return m_defaultValue;
}
operator const T () const
operator const T &() const
{
return Get();
}