Jump to content

  • Log In with Google      Sign In   
  • Create Account


Journal of Aardvajk



C++11 variable args applied to signals/slots system

Posted by Aardvajk, 31 July 2014 · 495 views

Quick snippetty post today. Been looking at making a clean signals/slots system using varadic templates. This is only tested with GCC 4.7.2#ifndef DELEGATE_H#define DELEGATE_H#include <vector>#include <algorithm>template<class... Args> class Event;class BaseDelegate{public: virtual ~BaseDelegate(){ }};template<class... Args...





PARTNERS