From 92b355988fdbefb3d166a4321c621a33b030516d Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Tue, 7 Nov 2023 20:27:50 +0100 Subject: [PATCH] std::experimental::boyer_moore_horspool_searcher is deprecated (#1266) --- 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