jpbarrette/curlpp

setOpt() const parameters

m5k8 opened this issue · 1 comments

m5k8 commented

const parameters passed to setOpt(), let's say:

request.setOpt<curlpp::options::UserAgent>(some_const_user_agent_str);

get converted to (void *), here - OptionSetter.inl:44:

handle->option(optionType, (void *)value.c_str());

and this cast generates compiler warning. It would be nice if it compiled cleanly.

Hi,
could you provide a PR, please ?