From 0385e25748252ccd086848eaee3862f6e06af720 Mon Sep 17 00:00:00 2001 From: Leander Schulten Date: Sat, 4 Nov 2023 16:04:08 +0100 Subject: [PATCH] std::experimental::boyer_moore_horspool_searcher is deprecated --- include/vcpkg/base/strings.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/vcpkg/base/strings.h b/include/vcpkg/base/strings.h index 99a2f93336..1fedea94b2 100644 --- a/include/vcpkg/base/strings.h +++ b/include/vcpkg/base/strings.h @@ -14,7 +14,7 @@ #include #include -#ifdef __APPLE__ +#ifndef __cpp_lib_boyer_moore_searcher #include #endif @@ -47,10 +47,10 @@ namespace vcpkg::Strings::details namespace vcpkg::Strings { -#ifdef __APPLE__ - using boyer_moore_horspool_searcher = std::experimental::boyer_moore_horspool_searcher; -#else +#ifdef __cpp_lib_boyer_moore_searcher using boyer_moore_horspool_searcher = std::boyer_moore_horspool_searcher; +#else + using boyer_moore_horspool_searcher = std::experimental::boyer_moore_horspool_searcher; #endif template