@@ -449,15 +449,25 @@ class StatusOr {
449449 // / This method should only be called if this StatusOr object's status is OK
450450 // / (i.e. a call to ok() returns true), otherwise this call will abort.
451451 // /
452+ // / \deprecated Deprecated as part of Asylo's `absl::Status` migration. Use
453+ // / `value()`, `operator*()`, or `operator->()` instead.
452454 // / \return The stored `T` value.
455+ ABSL_DEPRECATED (
456+ " Deprecated as part of Asylo's absl::Status migration. Use value(), "
457+ " operator*(), or operator->() instead." )
453458 const T &ValueOrDie () const & { return **this ; }
454459
455460 // / Gets a mutable reference to the stored `T` value.
456461 // /
457462 // / This method should only be called if this StatusOr object's status is OK
458463 // / (i.e. a call to ok() returns true), otherwise this call will abort.
459464 // /
465+ // / \deprecated Deprecated as part of Asylo's `absl::Status` migration. Use
466+ // / `value()`, `operator*()`, or `operator->()` instead.
460467 // / \return The stored `T` value.
468+ ABSL_DEPRECATED (
469+ " Deprecated as part of Asylo's absl::Status migration. Use value(), "
470+ " operator*(), or operator->() instead." )
461471 T &ValueOrDie () & { return **this ; }
462472
463473 // / Moves and returns the internally-stored `T` value.
@@ -467,7 +477,12 @@ class StatusOr {
467477 // / StatusOr object is changed after this call to a valid but unspecified
468478 // / state.
469479 // /
480+ // / \deprecated Deprecated as part of Asylo's `absl::Status` migration. Use
481+ // / `value()`, `operator*()`, or `operator->()` instead.
470482 // / \return The stored `T` value.
483+ ABSL_DEPRECATED (
484+ " Deprecated as part of Asylo's absl::Status migration. Use value(), "
485+ " operator*(), or operator->() instead." )
471486 T ValueOrDie () && { return *std::move (*this ); }
472487
473488 // / Gets the stored `T` value.
0 commit comments