ports/math/dgl/files
Dimitry Andric 4dc6727cb5 math/dgl: fix build with clang 19
Clang 19 now implements CWG 96 [1], which requires a template argument
list after a 'template' keyword, resulting in errors similar to:

  /wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h:241:30: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    241 |     index_ = value_.template Construct(std::forward<Args>(args)...);
        |                              ^
  /wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h:258:26: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    258 |     if (!value_.template Assign(TypeTag<T>{}, index_, std::forward<U>(value))) {
        |                          ^
  /wrkdirs/usr/ports/math/dgl/work/dgl-1.1.2/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h:265:26: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
    265 |     if (!value_.template Assign(index_, std::forward<T>(value))) {
        |                          ^

In all these cases, appending "<>" is enough to satisfy the constraint.

[1] https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#96

PR:		282949
Approved by:	maintainer timeout (2 weeks)
MFH:		2024Q4
2024-12-14 00:26:16 +01:00
..
patch-CMakeLists.txt
patch-python_dgl_backend_____init____.py
patch-src_runtime_shared__mem.cc
patch-third__party_METIS_libmetis_CMakeLists.txt
patch-third__party_tensorpipe_tensorpipe_common_system.cc
patch-third__party_tensorpipe_third__party_libnop_include_nop_types_variant.h math/dgl: fix build with clang 19 2024-12-14 00:26:16 +01:00