mirror of
https://github.com/ETLCPP/etl.git
synced 2026-11-09 14:49:53 +08:00
Added etl::mem_fn
This commit is contained in:
parent
c4f772b509
commit
ac93dc730d
@ -547,7 +547,7 @@ namespace etl
|
||||
|
||||
ETL_CONSTEXPR TReturnType operator()(TClassType& instance, TArgs... args) const
|
||||
{
|
||||
return (instance.*member_function)(std::forward<TArgs>(args)...);
|
||||
return (instance.*member_function)(etl::forward<TArgs>(args)...);
|
||||
}
|
||||
|
||||
private:
|
||||
@ -570,7 +570,7 @@ namespace etl
|
||||
|
||||
ETL_CONSTEXPR TReturnType operator()(const TClassType& instance, TArgs... args) const
|
||||
{
|
||||
return (instance.*member_function)(std::forward<TArgs>(args)...);
|
||||
return (instance.*member_function)(etl::forward<TArgs>(args)...);
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user