diff --git a/src/kamokan_impl/storage.cpp b/src/kamokan_impl/storage.cpp index c58939e..a3c8f6a 100644 --- a/src/kamokan_impl/storage.cpp +++ b/src/kamokan_impl/storage.cpp @@ -213,8 +213,10 @@ namespace kamokan { return retval; if (raw_replies.front().is_error()) { + using std::string; + using boost::make_optional; retval.error = - boost::make_optional(get_error_string(raw_replies.front()).message()); + make_optional(string(get_error_string(raw_replies.front()).message())); return retval; } auto pastie_reply = get_array(raw_replies.front());