Hello,
I tried to compile PODOFO with gcc 13 and I get the following error:
[ 65%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/ParserTest.cpp.o
[ 65%] Building CXX object
test/unit/CMakeFiles/podofo-test.dir/TokenizerTest.cpp.o
[ 66%] Building CXX object test/unit/CMakeFiles/podofo-test.dir/StringTest.cpp.o
In file included from /usr/include/cppunit/TestAssert.h:8,
from /usr/include/cppunit/TestCase.h:6,
from /usr/include/cppunit/TestCaller.h:5,
from /usr/include/cppunit/extensions/HelperMacros.h:9,
from /container/source/var/podofo-0.9.7/test/unit/StringTest.h:24,
from /container/source/var/podofo-0.9.7/test/unit/StringTest.cpp:21:
/usr/include/cppunit/tools/StringHelper.h: In instantiation of 'typename
std::enable_if<(! std::is_enum<_Tp>::value), std::__cxx11::basic_string >::type
CppUnit::StringHelper::toString(const T&) [with T = PoDoFo::PdfString; typename
std::enable_if<(! std::is_enum<_Tp>::value), std::__cxx11::basic_string >::type
= std::__cxx11::basic_string]':
/usr/include/cppunit/TestAssert.h:74:50: required from 'static std::string
CppUnit::assertion_traits::toString(const T&) [with T = PoDoFo::PdfString;
std::string = std::__cxx11::basic_string]'
/usr/include/cppunit/TestAssert.h:168:58: required from 'void
CppUnit::assertEquals(const T&, const T&, SourceLine, const std::string&) [with
T = PoDoFo::PdfString; std::string = std::__cxx11::basic_string]'
/container/source/var/podofo-0.9.7/test/unit/StringTest.cpp:182:5: required
from here
/usr/include/cppunit/tools/StringHelper.h:25:9: error: no match for
'operator<<' (operand types are 'CppUnit::OStringStream' {aka
'std::__cxx11::basic_ostringstream'} and 'const PoDoFo::PdfString')
25 | ost << x;
| ^~~~
In file included from /usr/gcc/13/include/c++/13.2.0/istream:41,
from /usr/gcc/13/include/c++/13.2.0/sstream:40,
from /usr/include/cppunit/portability/Stream.h:283,
from /usr/include/cppunit/TestAssert.h:7:
/usr/gcc/13/include/c++/13.2.0/ostream:110:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(__ostream_type&
()(__ostream_type&)) [with _CharT = char; _Traits = std::char_traits;
__ostream_type = std::basic_ostream]'
110 | operator<<(__ostream_type& (__pf)(__ostream_type&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:110:36: note: no known conversion for
argument 1 from 'const PoDoFo::PdfString' to
'std::basic_ostream::__ostream_type& ()(std::basic_ostream::__ostream_type&)'
{aka 'std::basic_ostream& ()(std::basic_ostream&)'}
110 | operator<<(__ostream_type& (__pf)(__ostream_type&))
| ~~^~
/usr/gcc/13/include/c++/13.2.0/ostream:119:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(__ios_type& ()(__ios_type&))
[with _CharT = char; _Traits = std::char_traits; __ostream_type =
std::basic_ostream; __ios_type = std::basic_ios]'
119 | operator<<(__ios_type& (__pf)(__ios_type&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:119:32: note: no known conversion for
argument 1 from 'const PoDoFo::PdfString' to 'std::basic_ostream::__ios_type&
()(std::basic_ostream::__ios_type&)' {aka 'std::basic_ios& ()(std::basic_ios&)'}
119 | operator<<(__ios_type& (__pf)(__ios_type&))
| ~~^~
/usr/gcc/13/include/c++/13.2.0/ostream:129:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(std::ios_base&
()(std::ios_base&)) [with _CharT = char; _Traits = std::char_traits;
__ostream_type = std::basic_ostream]'
129 | operator<<(ios_base& (__pf) (ios_base&))
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:129:30: note: no known conversion for
argument 1 from 'const PoDoFo::PdfString' to 'std::ios_base& ()(std::ios_base&)'
129 | operator<<(ios_base& (__pf) (ios_base&))
| ^
/usr/gcc/13/include/c++/13.2.0/ostream:168:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(long int) [with _CharT = char;
_Traits = std::char_traits; __ostream_type = std::basic_ostream]'
168 | operator<<(long __n)
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:168:23: note: no known conversion for
argument 1 from 'const PoDoFo::PdfString' to 'long int'
168 | operator<<(long __n)
| ~^~~
/usr/gcc/13/include/c++/13.2.0/ostream:172:7: note: candidate:
'std::basic_ostream<_CharT, _Traits>::__ostream_type&
std::basic_ostream<_CharT, _Traits>::operator<<(long unsigned int) [with _CharT
= char; _Traits = std::char_traits; __ostream_type = std::basic_ostream]'
172 | operator<<(unsigned long __n)
| ^~~~
/usr/gcc/13/include/c++/13.2.0/ostream:172:32: note: no known conversion for
argument 1 from 'const PoDoFo::PdfString' to 'long unsigned int'
172 | operator<<(unsigned long __n)
| ~~^~~
/usr/gcc/13/include/c++/13.2.0/ostream:176:7: note: candidate:
'std: