Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!

Journal of Aardvajk

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

Posted by Aardvajk, 31 July 2014 · 679 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...