mirror of
https://github.com/matrix-construct/construct
synced 2025-01-15 17:16:49 +01:00
ircd::util::callbacks: Typedef access to the template class for derived classes.
This commit is contained in:
parent
beaa970176
commit
d394cd4d18
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,8 @@ template<class prototype>
|
|||
struct ircd::util::callbacks<prototype, true>
|
||||
:std::list<std::function<prototype>>
|
||||
{
|
||||
using proto_type = prototype;
|
||||
|
||||
template<class... args>
|
||||
void operator()(args&&... a) const
|
||||
{
|
||||
|
@ -57,6 +59,8 @@ template<class prototype>
|
|||
struct ircd::util::callbacks<prototype, false>
|
||||
:std::list<std::function<prototype>>
|
||||
{
|
||||
using proto_type = prototype;
|
||||
|
||||
template<class... args>
|
||||
void operator()(args&&... a) const
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue