Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
#include <string>
#include "dispatcher.hpp" // the implementation is here
using namespace std;
// a dummy enum for this example
enum EventEnum {EVENT1, EVENT2, EVENT3};
int main(int argc, char *argv[])
#ifndef __DISPATCHER_H
#define __DISPATCHER_H
#include <functional>
#include <list>
template <typename... Args>
class Dispatcher
{
public: