mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-15 05:43:33 +08:00
MethodBinder passes all values by reference
This commit is contained in:
@@ -46,14 +46,14 @@ public:
|
||||
}
|
||||
|
||||
template <typename Par1>
|
||||
void operator()(Par1 p1)
|
||||
void operator()(Par1& p1)
|
||||
{
|
||||
validateBeforeCall();
|
||||
(obj_->*fun_)(p1);
|
||||
}
|
||||
|
||||
template <typename Par1, typename Par2>
|
||||
void operator()(Par1 p1, Par2 p2)
|
||||
void operator()(Par1& p1, Par2& p2)
|
||||
{
|
||||
validateBeforeCall();
|
||||
(obj_->*fun_)(p1, p2);
|
||||
|
||||
Reference in New Issue
Block a user