File tree 1 file changed +3
-6
lines changed
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ struct Nullable : protected std::optional<T>
44
44
// The following 'using' statement is needed to make visible
45
45
// all constructors of the base class within this derived class.
46
46
//
47
- using std::optional<T>::value ;
47
+ using std::optional<T>::optional ;
48
48
using std::optional<T>::operator *;
49
49
using std::optional<T>::operator ->;
50
50
@@ -68,11 +68,8 @@ struct Nullable : protected std::optional<T>
68
68
return std::optional<T>::value_or (std::forward<Args>(args)...);
69
69
}
70
70
71
- template <typename ... Args>
72
- constexpr auto Value (Args &&... args) const
73
- {
74
- return std::optional<T>::value (std::forward<Args>(args)...);
75
- }
71
+ constexpr const T & Value () const { return **this ; }
72
+ T & Value () { return **this ; }
76
73
77
74
// For integer types, being nullable involves a range restriction.
78
75
template <
You can’t perform that action at this time.
0 commit comments