JosephP91 / curlcpp

An object oriented C++ wrapper for CURL (libcurl)
https://josephp91.github.io/curlcpp
MIT License
630 stars 174 forks source link

easy.get_info<CURLINFO_CONTENT_TYPE>(); not a std::pair #156

Open aboelens opened 1 month ago

aboelens commented 1 month ago

In one of the examples it is mentioned that:

/**

However, the type of I get is:

auto x = easy_.get_info(); std::cout << "Type of x: " << typeid(x.get()).name() << std::endl;

Type of x: class std::basic_string<char,struct std::char_traits,class std::allocator >

instead of a std::pair. How do I get just the element requested?

Thanks,

Arnout