On Fri, Nov 14, 2008 at 4:12 PM, Piotr Dobrogost <[EMAIL PROTECTED]>wrote:
> Jean > > Using Easy::setOpt is not as convenient as it should be. > > Now we have > > std::string address = "http://example.com" > // Setting the URL to retrive. > request.setOpt(new cURLpp::Options::Url(address)); > > Could we do better? > > std::string url = "http://example.com" > // Setting the URL to retrive. > request.set<url>(address); > Well... No... The thing is setOpt wouldn't be able to distinguish between different "string" options (Url, Proxy, Interface, etc). However: using namespace cURLpp::Options would shorten up the code: request.setOpt(new Url(address)) > > > > Regards > Piotr Dobrogost > > _______________________________________________ > cURLpp mailing list > [email protected] > http://www.rrette.com/mailman/listinfo/curlpp >
_______________________________________________ cURLpp mailing list [email protected] http://www.rrette.com/mailman/listinfo/curlpp
