cpp-netlib/cpp-netlib — Issue #82: Unable to compile example http_client.cpp on MSVC 10.0
Author: glynos
Created: 2011-12-04 22:16:52+00:00
State: open

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:\PROGRA~2\MICROS~1.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,
_OutIt=boost::function_output_iterator,
_UIter=boost::function_output_iterator
]
D:\Sandbox\cpp-netlib\libs\network\example\http_client.cpp(81) : see reference to function template instantiation '_OutIt std::copy>(_InIt,_InIt,_OutIt)' b
eing compiled
with
[
_OutIt=boost::function_output_iterator,
IteratorT=std::_Tree_const_iterator::type,boost::network::string::type,std::less,std::allocator::type,boost::network::string::type>>,true>>>,
UnaryFunction=header_printer,
_InIt=std::_Tree_const_iterator::type,boost::network::string::type,std::less,std::allocator::type,boost::network::string::type>>,true>>>
]
NMAKE : fatal error U1077: 'C:\PROGRA~2\MICROS~1.0\VC\bin\cl.exe' : return code '0x2'