Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std::experimental::boyer_moore_horspool_searcher is deprecated #1266

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions include/vcpkg/base/strings.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include <algorithm>
#include <vector>

#ifdef __APPLE__
#ifndef __cpp_lib_boyer_moore_searcher
#include <experimental/functional>
#endif

Expand Down Expand Up @@ -47,10 +47,10 @@ namespace vcpkg::Strings::details

namespace vcpkg::Strings
{
#ifdef __APPLE__
using boyer_moore_horspool_searcher = std::experimental::boyer_moore_horspool_searcher<std::string::const_iterator>;
#else
#ifdef __cpp_lib_boyer_moore_searcher
using boyer_moore_horspool_searcher = std::boyer_moore_horspool_searcher<std::string::const_iterator>;
#else
using boyer_moore_horspool_searcher = std::experimental::boyer_moore_horspool_searcher<std::string::const_iterator>;
#endif

template<class... Args>
Expand Down