From 71c5ba699c190b3beeeeba8b51d27a5d8a84192a Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Wed, 1 Apr 2015 14:14:32 -0400 Subject: [PATCH 1/2] patch RuntimeException call. Change string value to const string --- include/curlpp/Option.inl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()); From 752462f1dbe05f81ab1152b6c351af4237e263c7 Mon Sep 17 00:00:00 2001 From: juanvallejo Date: Wed, 1 Apr 2015 14:16:36 -0400 Subject: [PATCH 2/2] update README --- README | 3 +++ 1 file changed, 3 insertions(+) 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: