Skip to content

Commit

Permalink
std::experimental::boyer_moore_horspool_searcher is deprecated (#1266)
Browse files Browse the repository at this point in the history
  • Loading branch information
autoantwort authored Nov 7, 2023
1 parent 0039471 commit 92b3559
Showing 1 changed file with 4 additions and 4 deletions.
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

0 comments on commit 92b3559

Please sign in to comment.