Jump to content

July 2014 »

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

Recent Entries

Recent Entries

View more

Journal of Aardvajk

4: Adsense

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

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