Skip to content

Commit

Permalink
Fix feature test for ABSL_HAVE_STD_OPTIONAL
Browse files Browse the repository at this point in the history
Fixes #1840

PiperOrigin-RevId: 728197023
Change-Id: I864164fc64512abac19ee6f9dc4e9562e68489a1
  • Loading branch information
derekmauro authored and copybara-github committed Feb 18, 2025
1 parent fdc64e2 commit a782d5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion absl/base/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
// Checks whether C++17 std::optional is available.
#ifdef ABSL_HAVE_STD_OPTIONAL
#error "ABSL_HAVE_STD_OPTIONAL cannot be directly set."
#elif defined(__cpp_lib_optional) && __cpp_lib_optional >= 202106L
#elif defined(__cpp_lib_optional) && __cpp_lib_optional >= 201606L
#define ABSL_HAVE_STD_OPTIONAL 1
#elif defined(ABSL_INTERNAL_CPLUSPLUS_LANG) && \
ABSL_INTERNAL_CPLUSPLUS_LANG >= 201703L && \
Expand Down

0 comments on commit a782d5c

Please sign in to comment.