From 5117a23e9fe6e91179ec8c3487da50c3b35a7958 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Thu, 13 Oct 2016 16:50:35 +0100 Subject: [PATCH] Use normal mode containers in searchers * include/experiumental/functional (boyer_moore_searcher) (__boyer_moore_map_base, __boyer_moore_array_base): Qualify containers with _GLIBCXX_STD_C. * include/std/functional: Likewise. From-SVN: r241126 --- libstdc++-v3/ChangeLog | 5 +++++ libstdc++-v3/include/experimental/functional | 8 ++++---- libstdc++-v3/include/std/functional | 8 ++++---- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5a81534..f65514c 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,10 @@ 2016-10-13 Jonathan Wakely + * include/experiumental/functional (boyer_moore_searcher) + (__boyer_moore_map_base, __boyer_moore_array_base): Qualify containers + with _GLIBCXX_STD_C. + * include/std/functional: Likewise. + * include/std/chrono (floor): Replace non-constexpr operation. * testsuite/20_util/duration_cast/rounding.cc: Test conversion to durations with floating pointer representations. diff --git a/libstdc++-v3/include/experimental/functional b/libstdc++-v3/include/experimental/functional index db45665..77e6e66 100644 --- a/libstdc++-v3/include/experimental/functional +++ b/libstdc++-v3/include/experimental/functional @@ -119,7 +119,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _Pred _M_pred() const { return _M_bad_char.key_eq(); } - std::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; + _GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; }; template @@ -128,7 +128,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template __boyer_moore_array_base(_RAIter __pat, size_t __patlen, _Unused&&, _Pred&& __pred) - : _M_bad_char{ std::array<_Tp, _Len>{}, std::move(__pred) } + : _M_bad_char{ _GLIBCXX_STD_C::array<_Tp, _Len>{}, std::move(__pred) } { std::get<0>(_M_bad_char).fill(__patlen); if (__patlen > 0) @@ -156,7 +156,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION const _Pred& _M_pred() const { return std::get<1>(_M_bad_char); } - std::tuple, _Pred> _M_bad_char; + std::tuple<_GLIBCXX_STD_C::array<_Tp, _Len>, _Pred> _M_bad_char; }; template @@ -229,7 +229,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION _RAIter _M_pat; _RAIter _M_pat_end; - std::vector<__diff_type> _M_good_suffix; + _GLIBCXX_STD_C::vector<__diff_type> _M_good_suffix; }; template _M_bad_char; + _GLIBCXX_STD_C::unordered_map<_Key, _Tp, _Hash, _Pred> _M_bad_char; }; template @@ -2215,7 +2215,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type) template __boyer_moore_array_base(_RAIter __pat, size_t __patlen, _Unused&&, _Pred&& __pred) - : _M_bad_char{ std::array<_Tp, _Len>{}, std::move(__pred) } + : _M_bad_char{ _GLIBCXX_STD_C::array<_Tp, _Len>{}, std::move(__pred) } { std::get<0>(_M_bad_char).fill(__patlen); if (__patlen > 0) @@ -2243,7 +2243,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type) const _Pred& _M_pred() const { return std::get<1>(_M_bad_char); } - std::tuple, _Pred> _M_bad_char; + std::tuple<_GLIBCXX_STD_C::array<_Tp, _Len>, _Pred> _M_bad_char; }; template @@ -2316,7 +2316,7 @@ _GLIBCXX_MEM_FN_TRAITS(&&, false_type, true_type) _RAIter _M_pat; _RAIter _M_pat_end; - std::vector<__diff_type> _M_good_suffix; + _GLIBCXX_STD_C::vector<__diff_type> _M_good_suffix; }; template