template<typename T>
void Socket::ServerSocket::ProcessRequests(T callback) const
{
while(listen(this->m_socket, SOMAXCONN) != SOCKET_ERROR)
{
Socket::ServerSocket::ServerSocketDevice device(this->m_socket);
boost::iostreams::stream_buffer<Socket::ServerSocket::ServerSocketDevice> buffer;
buffer.open(device);
std::iostream stream(&buffer);
boost::thread child(std::bind1st(callback, stream));
}
Error 1 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 261
Error 2 error C2039: 'second_argument_type' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 261
Error 3 error C2146: syntax error : missing ',' before identifier 'second_argument_type' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 261
Error 4 error C2065: 'second_argument_type' : undeclared identifier c:\program files (x86)\microsoft visual studio 8\vc\include\functional 261
Error 5 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 262
Error 6 error C2039: 'result_type' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 262
Error 7 error C2146: syntax error : missing ',' before identifier 'result_type' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 262
Error 8 error C2065: 'result_type' : undeclared identifier c:\program files (x86)\microsoft visual studio 8\vc\include\functional 262
Error 9 error C2955: 'std::unary_function' : use of class template requires template argument list c:\program files (x86)\microsoft visual studio 8\vc\include\functional 263
Error 10 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 265
Error 11 error C2143: syntax error : missing ',' before '`global namespace'::second_argument_type' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 265
Error 12 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 266
Error 13 error C2143: syntax error : missing ',' before '`global namespace'::result_type' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 266
Error 14 error C2955: 'std::unary_function' : use of class template requires template argument list c:\program files (x86)\microsoft visual studio 8\vc\include\functional 267
Error 15 error C2955: 'std::unary_function' : use of class template requires template argument list c:\program files (x86)\microsoft visual studio 8\vc\include\functional 268
Error 16 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 270
Error 17 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 270
Error 18 error C2039: 'first_argument_type' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 270
Error 19 error C2143: syntax error : missing ',' before '&' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 270
Error 20 error C2825: '_Fn2': must be a class or namespace when followed by '::' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 288
Error 21 error C2039: 'first_argument_type' : is not a member of '`global namespace'' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 288
Error 22 error C2146: syntax error : missing ';' before identifier 'value' c:\program files (x86)\microsoft visual studio 8\vc\include\functional 288
Error 23 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int c:\program files (x86)\microsoft visual studio 8\vc\include\functional 288
Error 24 error C2664: 'boost::thread::thread(const boost::function0<R> &)' : cannot convert parameter 1 from 'std::binder1st<_Fn2>' to 'const boost::function0<R> &' c:\users\diltsman\documents\visual studio 2005\projects\operationaardvark\socketstream\serversocket.h 58