Skip to content

Commit ad56f13

Browse files
committed
fix(test/string): avoid use of deleted function
Remove portion of code to fix a build issue for gcc16(C++23), where the build fails due to test `error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = char_traits<char>]’ 148 | DLIB_TEST_MSG( (left_substr(ws,L".") == L"file"), L"");`
1 parent 2a70e7b commit ad56f13

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

dlib/test/string.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -143,13 +143,6 @@ namespace
143143
DLIB_TEST( (left_substr(a,"") == "file.txt"));
144144
DLIB_TEST( (right_substr(a,"") == ""));
145145

146-
wstring ws = L"file.txt";
147-
DLIB_TEST( (left_substr(ws,wstring(L".")) == L"file"));
148-
DLIB_TEST_MSG( (left_substr(ws,L".") == L"file"), L"");
149-
DLIB_TEST( (right_substr(ws,wstring(L".")) == L"txt"));
150-
DLIB_TEST_MSG( (right_substr(ws,L".") == L"txt"), L"");
151-
152-
153146
dlog << LTRACE << 8;
154147
{
155148
ostringstream sout;

0 commit comments

Comments
 (0)