cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: [Patch] docs/examples/asiohiper.cpp

From: Ray Satiro via curl-library <curl-library_at_cool.haxx.se>
Date: Sat, 6 Feb 2016 18:07:11 -0500

On 2/6/2016 4:20 AM, Gisle Vanem wrote:
> This example is not quite up-to-date with the latest Boost
> or C++ standard. With latest MSVC, I get these errors and
> 1 warning:
>
> asiohiper.cpp(365): error C2039: 'cout': is not a member of 'std'
>
> asiohiper.cpp(431): error C2664: 'CURLcode curl_easy_setopt(CURL *,CURLoption,...)':
> cannot convert argument 3 from 'overloaded-function' to '...'
> asiohiper.cpp(431): note: Context does not allow for disambiguation of overloaded function
>
> asiohiper.cpp(445): warning C4101: 'rc': unreferenced local variable
>
> With this patch, it builds and works fine

Thanks, landed in https://github.com/curl/curl/commit/c71b6a2

-------------------------------------------------------------------
List admin: https://cool.haxx.se/list/listinfo/curl-library
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2016-02-07