Scope
Base.cpp
1 #include "stdafx.h"
2 #include "Base.h"
3 
4 namespace scope {
5  namespace parameters {
6 
7 Base::~Base() {
8  // This disconnects all connections. There is still one glitch, since the derived class destructor is called first
9  // derived members are already destructed before we call disconnect here
10  for ( auto& c : connection_collector )
11  c.disconnect();
12 }
13 
14  }
15 }
std::vector< boost::signals2::connection > connection_collector
You can put connections between ScopeValues in different classes in here.
Definition: Base.h:27
This is the include file for standard system include files, or project specific include files that ar...