Unable to compile example http_client.cpp on MSVC 10.0 #82

Closed
glynos opened this Issue Dec 4, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@glynos
Member

glynos commented Dec 4, 2011

Output:

[ 84%] Building CXX object libs/network/example/CMakeFiles/http_client.dir/http_client.cpp.obj
cd D:\Sandbox\cpp-netlib-1_45\libs\network\example
C:\PROGRA2\MICROS1.0\VC\bin\cl.exe @C:\Users\Glyn\AppData\Local\Temp\nm5774.tmp
http_client.cpp
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility(275) : error C2582: 'operator =' function is unavailable in 'boost::function_output_iterator'
with
[
UnaryFunction=header_printer
]
C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\INCLUDE\xutility(2176) : see reference to function template instantiation '_Iter &std::_Rechecked<_OutIt,_OutIt>(_Iter &,_UIter)' being compiled
with
[
_Iter=boost::function_output_iterator<header_printer>,
_OutIt=boost::function_output_iterator<header_printer>,
_UIter=boost::function_output_iterator<header_printer>
]
D:\Sandbox\cpp-netlib\libs\network\example\http_client.cpp(81) : see reference to function template instantiation '_OutIt std::copy<IteratorT,boost::function_output_iterator>(_InIt,_InIt,_OutIt)' b
eing compiled
with
[
_OutIt=boost::function_output_iterator<header_printer>,
IteratorT=std::_Tree_const_iteratorstd::_Tree_val<std::_Tmap_traits<boost::network::string<boost::network::http::tags::http_async_8bit_tcp_resolve::type,boost::network::string<boost::network::http::tags::ht
tp_async_8bit_tcp_resolve>::type,std::lessstd::string,std::allocator<std::pair<const boost::network::stringboost::network::http::tags::http_default_8bit_tcp_resolve::type,boost::network::string<boost::network::http::
tags::http_default_8bit_tcp_resolve>::type>>,true>>>,
UnaryFunction=header_printer,
_InIt=std::_Tree_const_iteratorstd::_Tree_val<std::_Tmap_traits<boost::network::string<boost::network::http::tags::http_async_8bit_tcp_resolve::type,boost::network::string<boost::network::http::tags::http_a
sync_8bit_tcp_resolve>::type,std::lessstd::string,std::allocator<std::pair<const boost::network::stringboost::network::http::tags::http_default_8bit_tcp_resolve::type,boost::network::string<boost::network::http::tags
::http_default_8bit_tcp_resolve>::type>>,true>>>
]
NMAKE : fatal error U1077: 'C:\PROGRA2\MICROS1.0\VC\bin\cl.exe' : return code '0x2'

@deanberris

This comment has been minimized.

Show comment
Hide comment
@deanberris

deanberris Dec 5, 2011

Member

I'll simplify the code to address this. Thanks for filing this one Glyn.

Member

deanberris commented Dec 5, 2011

I'll simplify the code to address this. Thanks for filing this one Glyn.

@deanberris deanberris closed this in b46df4e Dec 5, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment