From 9014bed3dd46696711c86c36c73d1af0affa0695 Mon Sep 17 00:00:00 2001 From: Richard Barnes Date: Sat, 19 Oct 2024 21:03:36 -0700 Subject: [PATCH] `c10::optional` -> `std::optional` in executorch/runtime/core/exec_aten/exec_aten.h Summary: `c10::optional` is just an alias for `std::optional`. We are removing that alias, so we need to fix all instances where it is used. Differential Revision: D64648339 --- runtime/core/exec_aten/exec_aten.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/core/exec_aten/exec_aten.h b/runtime/core/exec_aten/exec_aten.h index df6ef60c833..84b918bf289 100644 --- a/runtime/core/exec_aten/exec_aten.h +++ b/runtime/core/exec_aten/exec_aten.h @@ -60,7 +60,7 @@ using string_view = c10::string_view; template using ArrayRef = c10::ArrayRef; template -using optional = c10::optional; +using optional = std::optional; using nullopt_t = c10::nullopt_t; using c10::nullopt; using ScalarType = at::ScalarType;