|
@@ -224,7 +224,7 @@ inline StatusOr<T>& StatusOr<T>::operator=(const StatusOr<T>& other) {
|
|
template<typename T>
|
|
template<typename T>
|
|
template<typename U>
|
|
template<typename U>
|
|
inline StatusOr<T>::StatusOr(const StatusOr<U>& other)
|
|
inline StatusOr<T>::StatusOr(const StatusOr<U>& other)
|
|
- : status_(other.status_), value_(other.status_.ok() ? other.value_ : NULL) {
|
|
|
|
|
|
+ : status_(other.status_), value_(other.status_.ok() ? other.value_ : T()) {
|
|
}
|
|
}
|
|
|
|
|
|
template<typename T>
|
|
template<typename T>
|