diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-03-19 22:47:37 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-03-20 08:33:39 +0000 |
commit | 0f6dfd5e6d3635ba56c320179a616405cd05d68a (patch) | |
tree | a73751eb4101ede5c28499da948617f10a3fd301 /starmath | |
parent | 28325983db2f7613b94bc70ef920ba13ebe6d817 (diff) |
Fix C++20 build
...after 40d717c7bea493a24b9fd888bc71647d8793323b "CppunitTest_starmath_export:
inherit from UnoApiXmlTest",
> workdir/UnpackedTarball/cppunit/include/cppunit/tools/StringHelper.h:25:9: error: overload resolution selected deleted operator '<<'
> ost << x;
> ~~~ ^ ~
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:74:42: note: in instantiation of function template specialization 'CppUnit::StringHelper::toString<char16_t>' requested here
> return CPPUNIT_NS::StringHelper::toString(x);
> ^
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:168:50: note: in instantiation of member function 'CppUnit::assertion_traits<char16_t>::toString' requested here
> Asserter::failNotEqual( assertion_traits<T>::toString(expected),
> ^
> starmath/qa/extras/mmlexport-test.cxx:76:5: note: in instantiation of function template specialization 'CppUnit::assertEquals<char16_t>' requested here
> CPPUNIT_ASSERT_EQUAL(u'\x222B', aContent[0]);
> ^
> workdir/UnpackedTarball/cppunit/include/cppunit/TestAssert.h:333:17: note: expanded from macro 'CPPUNIT_ASSERT_EQUAL'
> ( CPPUNIT_NS::assertEquals( (expected), \
> ^
> ~/gcc/trunk/inst/lib/gcc/x86_64-pc-linux-gnu/13.0.1/../../../../include/c++/13.0.1/ostream:605:5: note: candidate function [with _Traits = std::char_traits<char>] has been explicitly deleted
> operator<<(basic_ostream<char, _Traits>&, char16_t) = delete;
> ^
Change-Id: I4602c6876d21dc17c6b8d5dfda08a17216087aa1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149119
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r-- | starmath/qa/extras/mmlexport-test.cxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/starmath/qa/extras/mmlexport-test.cxx b/starmath/qa/extras/mmlexport-test.cxx index 9eb0cae9f4f2..f2cfa2d238b9 100644 --- a/starmath/qa/extras/mmlexport-test.cxx +++ b/starmath/qa/extras/mmlexport-test.cxx @@ -10,6 +10,7 @@ #include <sal/config.h> #include <test/unoapixml_test.hxx> +#include <o3tl/cppunittraitshelper.hxx> #include <sfx2/sfxbasemodel.hxx> #include <document.hxx> |