diff --git a/include/dap/optional.h b/include/dap/optional.h index deab3f7..06b298c 100644 --- a/include/dap/optional.h +++ b/include/dap/optional.h @@ -50,7 +50,6 @@ class optional { // value() returns the contained value, or defaultValue if the optional does // not contain a value. - inline T& value(const T& defaultValue); inline const T& value(const T& defaultValue) const; // operator bool() returns true if the optional contains a value. @@ -119,14 +118,6 @@ const T& optional::value() const { return val; } -template -T& optional::value(const T& defaultValue) { - if (!has_value()) { - return defaultValue; - } - return val; -} - template const T& optional::value(const T& defaultValue) const { if (!has_value()) {