HomeFreeBSD

print/harfbuzz-icu: unbreak build with ICU 75

Description

print/harfbuzz-icu: unbreak build with ICU 75

In file included from ../src/hb-icu.cc:39:
In file included from /usr/local/include/unicode/unorm2.h:35:
In file included from /usr/local/include/unicode/uset.h:36:
/usr/local/include/unicode/localpointer.h:561:26: error: 'auto' not allowed in template parameter until C++17
template <typename Type, auto closeFunction>

^~~~

In file included from ../src/hb-icu.cc:39:
In file included from /usr/local/include/unicode/unorm2.h:35:
/usr/local/include/unicode/uset.h:358:53: error: value of type 'void (USet *)' is not implicitly convertible to 'int'
U_DEFINE_LOCAL_OPEN_POINTER(LocalUSetPointer, USet, uset_close);

^~~~~~~~~~

/usr/local/include/unicode/localpointer.h:551:68: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'

using LocalPointerClassName = internal::LocalOpenPointer<Type, closeFunction>
                                                               ^~~~~~~~~~~~~

In file included from ../src/hb-icu.cc:39:
/usr/local/include/unicode/unorm2.h:286:69: error: value of type 'void (UNormalizer2 *)' is not implicitly convertible to 'int'
U_DEFINE_LOCAL_OPEN_POINTER(LocalUNormalizer2Pointer, UNormalizer2, unorm2_close);

^~~~~~~~~~~~

/usr/local/include/unicode/localpointer.h:551:68: note: expanded from macro 'U_DEFINE_LOCAL_OPEN_POINTER'

using LocalPointerClassName = internal::LocalOpenPointer<Type, closeFunction>
                                                               ^~~~~~~~~~~~~

PR: 278420
Reported by: antoine (via exp-run)

Details

Provenance
jbeichAuthored on Apr 20 2024, 9:49 PM
Parents
R11:ac847dd735c6: devel/hs-ShellCheck: Update 0.9.0 -> 0.10.0
Branches
Unknown
Tags
Unknown