Skip to content

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

@glynos

Description

@glynos

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions