From d98de34b980a2efb59616df28e9231722f7b6274 Mon Sep 17 00:00:00 2001 From: Daniel Wolf Date: Thu, 8 Sep 2016 22:05:11 +0200 Subject: [PATCH] Replaced calls to boost::optional.value() with operator* Boost 1.54 doesn't support value() yet, plus * is cleaner --- src/EnumConverter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/EnumConverter.h b/src/EnumConverter.h index e67e439..53ce691 100644 --- a/src/EnumConverter.h +++ b/src/EnumConverter.h @@ -33,7 +33,7 @@ public: throw std::invalid_argument(fmt::format("{} is not a valid {} value.", numericValue, typeName)); } - return result.value(); + return *result; } virtual boost::optional tryParse(const std::string& s) { @@ -51,7 +51,7 @@ public: throw std::invalid_argument(fmt::format("{} is not a valid {} value.", s, typeName)); } - return result.value(); + return *result; } std::ostream& write(std::ostream& stream, TEnum value) {