cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curlpp mailing list Archives

[cURLpp] CurlHandle.inl

From: Piotr Dobrogost <curlpp_at_2008.autoera.pl>
Date: Sat, 15 Nov 2008 20:01:20 +0100

Jean

In CurlHandle.inl we have this

template< typename OptionType >
void
cURLpp::CurlHandle::option(CURLoption optionType,
                           OptionType value)
{
   CURLcode code;
   code = curl_easy_setopt(mCurl, optionType, value);
   libcurlRuntimeAssert(mErrorBuffer, code);
}

template< typename OptionType, CURLoption optionType >
void
cURLpp::CurlHandle::option(OptionType value)
{
   option(optionType, value);
}

So there are as many option functions as there are many OptionType types. Do we really need this?

Regards
Piotr Dobrogost
_______________________________________________
cURLpp mailing list
cURLpp_at_rrette.com
http://www.rrette.com/mailman/listinfo/curlpp
Received on 2008-11-15

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET