mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-20 16:47:34 +08:00
Added scalar const conversion operator.
This commit is contained in:
+7
-1
@@ -39,10 +39,16 @@ public:
|
||||
_value = other;
|
||||
}
|
||||
|
||||
operator Type()
|
||||
operator Type &()
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
operator Type const &() const
|
||||
{
|
||||
return _value;
|
||||
}
|
||||
|
||||
private:
|
||||
Type _value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user