Remove unused dependency in absl/types/optional.h PiperOrigin-RevId: 866108635 Change-Id: If8981b0c4631d4bc81df1eb51f7b737cb97d3d2c
diff --git a/absl/types/BUILD.bazel b/absl/types/BUILD.bazel index 4acbbd3..cac5e4b 100644 --- a/absl/types/BUILD.bazel +++ b/absl/types/BUILD.bazel
@@ -100,6 +100,7 @@ linkopts = ABSL_DEFAULT_LINKOPTS, deps = [ "//absl/base:config", + "//absl/utility", ], )
diff --git a/absl/types/CMakeLists.txt b/absl/types/CMakeLists.txt index a442448..20a7e90 100644 --- a/absl/types/CMakeLists.txt +++ b/absl/types/CMakeLists.txt
@@ -98,6 +98,7 @@ ${ABSL_DEFAULT_COPTS} DEPS absl::config + absl::utility PUBLIC )
diff --git a/absl/types/optional.h b/absl/types/optional.h index 1542d25..5b68a5b 100644 --- a/absl/types/optional.h +++ b/absl/types/optional.h
@@ -26,6 +26,7 @@ #include <optional> #include "absl/base/config.h" +#include "absl/utility/utility.h" namespace absl { ABSL_NAMESPACE_BEGIN