title: Why can't I store boost::function in std::list?
body: <p>I get the following compilation error:</p>
  
  <pre><code>error: expected `;' before 'it'"
  </code></pre>
  
  <p>Here's my code:</p>
  
  <pre><code>#include &lt;boost/function.hpp&gt;
  #include &lt;list&gt;
  
  template&lt; class T &gt;
  void example() {
      std::list&lt; boost::function&lt;T ()&gt; &gt;::iterator it;
  }
  </code></pre>
  
  <p>Why does this happen? How can I fix it?</p>