diff options
author | François Dumont <fdumont@gcc.gnu.org> | 2022-08-10 19:35:41 +0200 |
---|---|---|
committer | François Dumont <fdumont@gcc.gnu.org> | 2022-10-12 21:50:21 +0200 |
commit | f77281b25ca6bb34ba271fa826e1e79a15df95fe (patch) | |
tree | 96fd6c28ce4b209f4dcbbe5705f3294c95db8dc6 /fixincludes | |
parent | bc0d700b574a22f12db7f7587ce885f64ebcbfb0 (diff) | |
download | gcc-f77281b25ca6bb34ba271fa826e1e79a15df95fe.zip gcc-f77281b25ca6bb34ba271fa826e1e79a15df95fe.tar.gz gcc-f77281b25ca6bb34ba271fa826e1e79a15df95fe.tar.bz2 |
libstdc++: Add __gnu_debug::basic_string<>::compare overloads
Rather than adding those implementations we are adding a:
using _Base::compare;
so that any compare method not implemented at __gnu_debug::basic_string
level are injected from the base class.
Also review how __gnu_debug::basic_string is tested. Now require to define
_GLIBCXX_TEST_DEBUG_STRING when running 'make check-debug'.
libstdc++-v3/ChangeLog
* include/debug/string: Add using _Base::compare.
(__gnu_debug::basic_string<>::compare(const basic_string<>&)): Remove.
(__gnu_debug::basic_string<>::compare(size_type, size_type, const basic_string<>&)):
Remove.
(__gnu_debug::basic_string<>::compare(size_type, size_type, const basic_string<>&,
size_type, size_type)): Remove.
* testsuite/util/testsuite_string.h [_GLIBCXX_TEST_DEBUG_STRING]: Include <debug/string>.
* testsuite/21_strings/basic_string/operations/compare/char/1.cc: Include testsuite_string.h
and use __gnu_test::string.
* testsuite/21_strings/basic_string/operations/compare/char/13650.cc: Likewise.
* testsuite/21_strings/basic_string/operations/compare/char/2.cc: Likewise.
* testsuite/21_strings/basic_string/operations/rfind/char/1.cc: Likewise.
* testsuite/21_strings/basic_string/operations/rfind/char/2.cc: Likewise.
* testsuite/21_strings/basic_string/operations/rfind/char/3.cc: Likewise.
* testsuite/21_strings/basic_string/operations/compare/wchar_t/1.cc:
Include testsuite_string.h
and use __gnu_test::wstring.
* testsuite/21_strings/basic_string/operations/compare/wchar_t/13650.cc: Likewise.
* testsuite/21_strings/basic_string/operations/compare/wchar_t/2.cc: Likewise.
Diffstat (limited to 'fixincludes')
0 files changed, 0 insertions, 0 deletions