From: Nelson, Erik on Thursday, February 18, 2010 10:47 AM
>In the course of working on something unrelated, I tried to compile
this one-line file
>#include <boost/network/protocol/http/traits/connection_policy.hpp>
>And I get an error, starting off with
>1>C:\work\boost\boost/network/protocol/http/policies/sync_resolver.hpp(
2
>5) : error C2143: syntax error : missing ';' before '<'
>1>
>C:\work\boost\boost/network/protocol/http/policies/sync_resolver.hpp(71
)
>: see reference to class template instantiation
'boost::network::http::policies::sync_resolver<Tag>' being compiled
>The offending line in sync_resolver.hpp is
>typedef typename string<Tag>::type string_type;
>Which I don't understand... the 'string' can't be a std::string, since
std::string is a typedef already. I didn't see template class 'string'
>defined anywhere within cpp-netlib.
>Can anybody comment on how this works?
I found the definition of struct string... Problem was a missing
#include
Erik
|