mirror of
https://github.com/matrix-construct/construct
synced 2025-01-14 00:34:18 +01:00
ircd::mods: Minor cleanup; reuse calls in stack.
This commit is contained in:
parent
c28e152954
commit
1f9eadc058
1 changed files with 4 additions and 4 deletions
|
@ -48,7 +48,7 @@ template<class T,
|
|||
auto
|
||||
ircd::mods::sym_ptr::operator()(args&&... a)
|
||||
{
|
||||
return (*get<T>())(std::forward<args>(a)...);
|
||||
return (operator*<T>())(std::forward<args>(a)...);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
@ -61,7 +61,7 @@ ircd::mods::sym_ptr::operator*()
|
|||
"The reference to a symbol in another module is no longer valid"
|
||||
};
|
||||
|
||||
return *get<T>();
|
||||
return *operator-><T>();
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
@ -84,7 +84,7 @@ auto
|
|||
ircd::mods::sym_ptr::operator()(args&&... a)
|
||||
const
|
||||
{
|
||||
return (*get<T>())(std::forward<args>(a)...);
|
||||
return (operator*<T>())(std::forward<args>(a)...);
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
@ -98,7 +98,7 @@ const
|
|||
"The const reference to a symbol in another module is no longer valid"
|
||||
};
|
||||
|
||||
return *get<T>();
|
||||
return *operator-><T>();
|
||||
}
|
||||
|
||||
template<class T>
|
||||
|
|
Loading…
Reference in a new issue