0
0
Fork 0
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:
Jason Volk 2019-08-03 16:50:52 -07:00
parent beaa970176
commit d394cd4d18

View file

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