You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Client compilation failure when including boost/network/protocol/http/server.hpp #13
..\..\..\boost/network/protocol/http/policies/sync_resolver.hpp(25) : error C2059: syntax error : '<'
..\..\..\boost/network/protocol/http/policies/pooled_connection.hpp(25) : see reference to class template instantiation 'boost::network::http::policies::sync_resolver<Tag>' being compiled
with
[
Tag=boost::network::tags::http_keepalive_8bit_udp_resolve
]
..\..\..\boost/network/protocol/http/client.hpp(29) : see reference to class template instantiation 'boost::network::http::pooled_connection_policy<Tag,version_major,version_minor>' being compiled
with
[
Tag=boost::network::tags::http_keepalive_8bit_udp_resolve,
version_major=1,
version_minor=1
]
erik_test.cpp(16) : see reference to class template instantiation 'boost::network::http::basic_client<Tag,version_major,version_minor>' being compiled
with
[
Tag=boost::network::tags::http_keepalive_8bit_udp_resolve,
version_major=1,
version_minor=1
]
..\..\..\boost/network/protocol/http/policies/sync_resolver.hpp(25) : error C2039: 'type' : is not a member of '`global namespace''
..\..\..\boost/network/protocol/http/policies/sync_resolver.hpp(25) : error C2238: unexpected token(s) preceding ';'
..\..\..\boost/network/protocol/http/policies/sync_resolver.hpp(26) : error C2065: 'string_type' : undeclared identifier
..\..\..\boost/network/protocol/http/policies/sync_resolver.hpp(32) : error C2061: syntax error : identifier 'string_type'
Hmm yeah, the using std::string directive clashes directly with the boost::network::string trait. Thanks for finding this, I will make some changes to these files and commit them as soon as I can.
Activity
nelson2005 commentedon Mar 15, 2010
this might be caused by the using directives in server.hpp.
I think it's probably better style to forgo the use of using directives at namespace scope in header files.
I get a very similar error if I compile just this in a cpp file
#include "boost/network/protocol/http/server.hpp"
#include "boost/network/protocol/http/client.hpp"
glynos commentedon Mar 17, 2010
Hmm yeah, the
using std::stringdirective clashes directly with theboost::network::stringtrait. Thanks for finding this, I will make some changes to these files and commit them as soon as I can.glynos commentedon Mar 21, 2010
This has been merged into the 0.6-devel integration branch.