title: error C2825: 'F': must be a class or namespace when followed by '::'
body: <p>I'm having a bit of trouble analyzing what is the cause of the error in my code. My code looks fine, and other devs also says its fine:</p>
  
  <pre><code>void handle_read_headers(const boost::system::error_code&amp; err, RESTClient::response&amp; resp)
  {
      if (!err)
      {
          // Start reading remaining data until EOF.
          boost::asio::async_read(socket_, response_,
              boost::asio::transfer_at_least(1),
              boost::bind(&amp;client::handle_read_content, this,
              boost::asio::placeholders::error,
              boost::asio::placeholders::bytes_transferred,
              boost::ref(resp)));
  
      }
  }
  
  void handle_read_content(const boost::system::error_code&amp; ec, size_t bytes_transferred, RESTClient::response&amp; resp)
  {
      if (!ec)
      {
          // Write all of the data that has been read so far.
          std::cout &lt;&lt; &amp;response_;
  
          // Continue reading remaining data until EOF.
          boost::asio::async_read(socket_, response_,
              boost::asio::transfer_at_least(1),
              boost::bind(&amp;client::handle_read_content, this,
              boost::asio::placeholders::error));
      }
  }
  </code></pre>
  
  <p>The whole source code can be found here: <a href="http://bit.ly/1gnemqG" rel="nofollow">http://bit.ly/1gnemqG</a></p>
  
  <p>The error is this </p>
  
  <pre><code>Error   1   error C2825: 'F': must be a class or namespace when followed by '::'    C:\local\boost_1_58_0\boost\bind\bind.hpp   69  1   HttpClientDemo
  Error   2   error C2039: 'result_type' : is not a member of '`global namespace''    C:\local\boost_1_58_0\boost\bind\bind.hpp   69  1   HttpClientDemo
  Error   3   error C2146: syntax error : missing ';' before identifier 'type'    C:\local\boost_1_58_0\boost\bind\bind.hpp   69  1   HttpClientDemo
  Error   4   error C2208: 'boost::_bi::type' : no members defined using this type    C:\local\boost_1_58_0\boost\bind\bind.hpp   69  1   HttpClientDemo
  Error   5   error C1903: unable to recover from previous error(s); stopping compilation C:\local\boost_1_58_0\boost\bind\bind.hpp   69  1   HttpClientDemo
  </code></pre>
  
  <p>What could be wrong in this code?</p>