From d5fde12e3b5f6c7613635086818963119af69954 Mon Sep 17 00:00:00 2001 From: Ryan Date: Wed, 14 Feb 2018 13:54:39 -0500 Subject: [PATCH] Expected bug (#55) Fix expected bugs --- 3rd_party/include/opentracing/expected/expected.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/3rd_party/include/opentracing/expected/expected.hpp b/3rd_party/include/opentracing/expected/expected.hpp index f3d65b1..1fb6464 100644 --- a/3rd_party/include/opentracing/expected/expected.hpp +++ b/3rd_party/include/opentracing/expected/expected.hpp @@ -117,7 +117,7 @@ union storage_t return std::move( m_value ); } - value_type * value_ptr() const + const value_type * value_ptr() const { return &m_value; } @@ -694,7 +694,7 @@ class expected : ( error_traits::rethrow( contained.error() ), contained.value() ); } - constexpr value_type && value() && + value_type && value() && { return has_value() ? ( contained.value() )