git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201651
91177308-0d34-0410-b5e6-
96231b3b80d8
private:
typedef typename remove_reference<T>::type &reference;
+ typedef const typename remove_reference<T>::type &const_reference;
typedef typename remove_reference<T>::type *pointer;
public:
}
reference get() { return *getStorage(); }
- const reference get() const { return const_cast<ErrorOr<T> >(this)->get(); }
+ const_reference get() const { return const_cast<ErrorOr<T> >(this)->get(); }
error_code getError() const {
return HasError ? *getErrorStorage() : error_code::success();