title: How do I pass boost signal to a function to be used somewhere else?
body: <p>This is defined as a public member of a class.</p>
  
  <pre><code>boost::signals2::signal&lt;void (int, std::string, std::string, int)&gt; sigApp;
  </code></pre>
  
  <p>Want to pass the signal like this:-</p>
  
  <pre><code>Application* newApp = new Application(pSn, &amp;mdCache_, &amp;sigApp);
  </code></pre>
  
  <p>Using it:-</p>
  
  <pre><code>(*sigApp)(Msg.getAsInt( var ), var2, var3, var4); //Signal Used
  </code></pre>
  
  <p>The program quits here during runtime.
  How should I pass boost signal to a function?</p>
  
  <p>Thanks</p>