sal/qa/rtl/oustring/rtl_ustr.cxx | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 5f5d7931d991e02a12536ca69df7715ed42a1f85
Author: Stephan Bergmann <[email protected]>
AuthorDate: Tue Mar 8 08:04:38 2022 +0100
Commit: Stephan Bergmann <[email protected]>
CommitDate: Tue Mar 8 08:46:51 2022 +0100
Fix --with-latest-c++ build
> In file included from
workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:8,
> from
workdir/UnpackedTarball/cppunit/include/cppunit/TestCase.h:6,
> from
workdir/UnpackedTarball/cppunit/include/cppunit/TestCaller.h:5,
> from
workdir/UnpackedTarball/cppunit/include/cppunit/extensions/HelperMacros.h:9,
> from sal/qa/rtl/oustring/rtl_ustr.cxx:25:
> workdir/UnpackedTarball/cppunit/include/cppunit/tools/StringHelper.h: In
instantiation of ‘typename std::enable_if<(! std::is_enum<_Tp>::value),
std::__cxx11::basic_string<char> >::type CppUnit::StringHelper::toString(const
T&) [with T = char16_t; typename std::enable_if<(! std::is_enum<_Tp>::value),
std::__cxx11::basic_string<char> >::type = std::__cxx11::basic_string<char>]’:
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:74:50:
required from ‘static std::string CppUnit::assertion_traits<T>::toString(const
T&) [with T = char16_t; std::string = std::__cxx11::basic_string<char>]’
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:168:58:
required from ‘void CppUnit::assertEquals(const T&, const T&, SourceLine, const
std::string&) [with T = char16_t; std::string =
std::__cxx11::basic_string<char>]’
> sal/qa/rtl/oustring/rtl_ustr.cxx:696:17: required from here
>
workdir/UnpackedTarball/cppunit/include/cppunit/tools/StringHelper.h:25:9:
error: use of deleted function ‘std::basic_ostream<char, _Traits>&
std::operator<<(basic_ostream<char, _Traits>&, char16_t) [with _Traits =
char_traits<char>]’
> 25 | ost << x;
> | ~~~~^~~~
> In file included from include/rtl/ustring.hxx:34,
> from sal/qa/rtl/oustring/rtl_ustr.cxx:22:
> ~/gcc/trunk/inst/include/c++/12.0.1/ostream:558:5: note: declared here
> 558 | operator<<(basic_ostream<char, _Traits>&, char16_t) = delete;
> | ^~~~~~~~
Change-Id: I70ae970c10650d0e6efa5ced3a354090642d5387
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131164
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <[email protected]>
diff --git a/sal/qa/rtl/oustring/rtl_ustr.cxx b/sal/qa/rtl/oustring/rtl_ustr.cxx
index ac4325c7b3a2..873d771f9457 100644
--- a/sal/qa/rtl/oustring/rtl_ustr.cxx
+++ b/sal/qa/rtl/oustring/rtl_ustr.cxx
@@ -19,6 +19,7 @@
#include <sal/config.h>
+#include <o3tl/cppunittraitshelper.hxx>
#include <rtl/ustring.hxx>
#include <cppunit/TestFixture.h>