Skip to content

Commit a782d5c

Browse files
derekmaurocopybara-github
authored andcommitted
Fix feature test for ABSL_HAVE_STD_OPTIONAL
Fixes #1840 PiperOrigin-RevId: 728197023 Change-Id: I864164fc64512abac19ee6f9dc4e9562e68489a1
1 parent fdc64e2 commit a782d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

absl/base/config.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
538538
// Checks whether C++17 std::optional is available.
539539
#ifdef ABSL_HAVE_STD_OPTIONAL
540540
#error "ABSL_HAVE_STD_OPTIONAL cannot be directly set."
541-
#elif defined(__cpp_lib_optional) && __cpp_lib_optional >= 202106L
541+
#elif defined(__cpp_lib_optional) && __cpp_lib_optional >= 201606L
542542
#define ABSL_HAVE_STD_OPTIONAL 1
543543
#elif defined(ABSL_INTERNAL_CPLUSPLUS_LANG) && \
544544
ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L && \

0 commit comments

Comments
 (0)