functions.h (__gnu_debug::__check_string): Move...
authorFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 6 Jul 2018 17:02:33 +0000 (17:02 +0000)
committerFrançois Dumont <fdumont@gcc.gnu.org>
Fri, 6 Jul 2018 17:02:33 +0000 (17:02 +0000)
commit1e736a9531b7ffda4fef17e70b33b6410efd98f7
tree3ae4e8c2bf3dca55fb69f4470ad889d6aa476574
parent582d1f904948c830a711739cc3388bbc71be4947
functions.h (__gnu_debug::__check_string): Move...

2018-07-06  François Dumont  <fdumont@gcc.gnu.org>

* include/debug/functions.h (__gnu_debug::__check_string): Move...
* include/debug/string (__gnu_debug::__check_string): ... here.
(_GLIBCXX_DEBUG_VERIFY_STR_COND_AT): New.
(__glibcxx_check_string_n_constructor): New.
(__gnu_debug::basic_string<>(const _CharT*, size_type, const _Alloc&)):
Use latter.
(__glibcxx_check_string_constructor): New.
(__gnu_debug::basic_string<>(const _CharT*, const _Alloc&)):
Use latter.
* testsuite/21_strings/basic_string/debug/1_neg.cc: New.
* testsuite/21_strings/basic_string/debug/2_neg.cc: New.

From-SVN: r262480
libstdc++-v3/ChangeLog
libstdc++-v3/include/debug/functions.h
libstdc++-v3/include/debug/string
libstdc++-v3/testsuite/21_strings/basic_string/debug/1_neg.cc [new file with mode: 0644]
libstdc++-v3/testsuite/21_strings/basic_string/debug/2_neg.cc [new file with mode: 0644]