curlpp  

Re: [curlpp:183] Access optional response information (eg. Content-Type)

Brad Hubbard
Fri, 22 Jan 2010 16:36:05 -0800



duselbaer wrote:
template<>
void
InfoTypeConverter<std::string>::get(curlpp::Easy & handle,
                      CURLINFO info,
                      std::string & value)
{
  char * tmp;
  InfoGetter::get(handle, info, tmp);
  if (tmp)
    value = tmp;
  else
    value.clear();
}



Why is this a template function?

Cheers,
Brad

--
You received this message because you are subscribed to the Google Groups 
"curlpp" group.
To post to this group, send email to cur...@googlegroups.com.
To unsubscribe from this group, send email to 
curlpp+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/curlpp?hl=en.