From 8d9fefdc192cd9ab7d363fe1bbc760536fc60500 Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Sat, 13 Oct 2018 16:46:56 +0100 Subject: [PATCH] Build fix --- src/kamokan_impl/storage.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/kamokan_impl/storage.cpp b/src/kamokan_impl/storage.cpp index 5b8607b..cceaaea 100644 --- a/src/kamokan_impl/storage.cpp +++ b/src/kamokan_impl/storage.cpp @@ -214,8 +214,9 @@ namespace kamokan { if (raw_replies.front().is_error()) { using std::string; - retval.error = - boost::make_optional(get_error_string(raw_replies.front()).message()); + retval.error = boost::make_optional( + string(get_error_string(raw_replies.front()).message()) + ); return retval; } auto pastie_reply = get_array(raw_replies.front());