Skip to content

Commit

Permalink
if constexpr since C++17
Browse files Browse the repository at this point in the history
  • Loading branch information
Advenam Tacet committed Dec 21, 2023
1 parent b14b804 commit 71ec899
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libcxx/include/string
Original file line number Diff line number Diff line change
Expand Up @@ -661,9 +661,9 @@ _LIBCPP_PUSH_MACROS
#endif
// _LIBCPP_STRING_IF_ASAN is used to removed ASan related code, whenever compiled without ASan.
#if !defined(_LIBCPP_HAS_NO_ASAN) && defined(_LIBCPP_INSTRUCTMENTED_WITH_ASAN)
# define _LIBCPP_STRING_IF_ASAN() if _LIBCPP_CONSTEXPR (true)
# define _LIBCPP_STRING_IF_ASAN() if _LIBCPP_CONSTEXPR_SINCE_CXX17 (true)
#else
# define _LIBCPP_STRING_IF_ASAN() if _LIBCPP_CONSTEXPR (false)
# define _LIBCPP_STRING_IF_ASAN() if _LIBCPP_CONSTEXPR_SINCE_CXX17 (false)
#endif
#define _LIBCPP_SHORT_STRING_ANNOTATIONS_ALLOWED false

Expand Down

0 comments on commit 71ec899

Please sign in to comment.