title: how to combine 2 independent boost::bind() into one boost::function?
body: <p>I have 2 functions <code>f()</code> and <code>g()</code>. I want to call them in order every time. Can I get a <code>boost::function</code> to do this?
  E.g. something like:</p>
  
  <pre><code>boost::function functor = boost::bind( boost::bind(f), boost::bind(g) );
  </code></pre>
  
  <p>Extend this further, say it takes arguments, then what I need is a chain of responsibility. Each node does something with arguments, then followed by next node of chain.
  How do I do that?</p>
  
  <hr>
  
  <p><strong>Update</strong> Thanks for Seth Carnegie's comments.
  I think what I really want is how to construct a chain of responsibility into a single <code>boost::function</code>, each node of chain can be constructed by using <code>boost::bind()</code>.</p>