Skip to content

fix(test/string): fix gcc 16 build issue#3137

Open
ykshek wants to merge 2 commits intodavisking:masterfrom
ykshek:gcc16-fix
Open

fix(test/string): fix gcc 16 build issue#3137
ykshek wants to merge 2 commits intodavisking:masterfrom
ykshek:gcc16-fix

Conversation

@ykshek
Copy link

@ykshek ykshek commented Feb 24, 2026

This should fix a build issue for gcc16 and thus fedora 44, where the build fails due to test error:

/builddir/build/BUILD/dlib-20.0-build/dlib-20.0/dlib/test/string.cpp:148:59: 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"");`
      |                                                           ^~~
/builddir/build/BUILD/dlib-20.0-build/dlib-20.0/dlib/test/string.cpp:150:59: error: use of deleted function ‘std::basic_ostream<char, _Traits>& std::operator<<(basic_ostream<char, _Traits>&, const wchar_t*) [with _Traits = char_traits<char>]’
  150 |         DLIB_TEST_MSG( (right_substr(ws,L".") == L"txt"), L"");
      |                                                           ^~~

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"");`
@ykshek
Copy link
Author

ykshek commented Feb 24, 2026

C++20 fails due to convert from ‘<brace-enclosed initializer list>’ to ‘std::vector<std::__cxx11::basic_string<char> >’
@ykshek ykshek marked this pull request as ready for review February 24, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant