diff --git a/README b/README index 7ed632c..38a32de 100644 --- a/README +++ b/README @@ -1,4 +1,7 @@ README + + [Update] Revised to compile with OSX (Mac) (The library no longer fails to compile when linked from a project using CMake). + Study the COPYING file for distribution terms and similar. Visit the cURLpp web site or mirrors for the latest news: diff --git a/include/curlpp/Option.inl b/include/curlpp/Option.inl index 4f8bb7e..a7cc5ad 100644 --- a/include/curlpp/Option.inl +++ b/include/curlpp/Option.inl @@ -111,7 +111,7 @@ typename Option::ReturnType Option::getValue() const { if(mContainer == NULL) - throw UnsetOption(std::string("You are trying to retreive the value of an unset option")); + throw UnsetOption("You are trying to retreive the value of an unset option"); return mContainer->getValue(); } @@ -145,7 +145,7 @@ OptionTrait::updateHandleToMe(internal::CurlHandle * handle) { if(this->mContainer == NULL) { - throw UnsetOption(std::string("You are trying to set an unset option to a handle")); + throw UnsetOption("You are trying to set an unset option to a handle"); } internal::OptionSetter::setOpt(handle, this->mContainer->getHandleOptionValue());