title: How to register a signal handler as a class method?
body: <p>Suppose I have a <code>class A</code>, with a public method <code>void f(int sig)</code>. In constructor of <code>A</code> I added</p>
  
  <pre><code>signal(SIGSEV, boost::bind(&amp;A::f, this, _1));
  </code></pre>
  
  <p>This returns compilation error</p>
  
  <pre><code>error : cannot convert `boost::_bi::bind_t&lt;void, boost::_mfi::mf1&lt;void, A, int&gt;, boost::_bi::list2&lt;boost::_bi::value&lt;A*&gt;, boost::arg&lt;1&gt; &gt; &gt;' to `__sighandler_t {aka void (*)(int)}' for argument `2' to `void (* signal(int, __sighandler_t))(int)'
  </code></pre>
  
  <p>Any idea why?</p>