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 · 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...





July 2014 »

S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

Recent Entries

Recent Comments

Recent Entries

Recent Comments

PARTNERS