0
0
Fork 0
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:
Jason Volk 2018-11-14 00:11:26 -08:00
parent c28e152954
commit 1f9eadc058

View file

@ -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>