diff --git a/math/dgl/files/patch-third__party_tensorpipe_third__party_libnop_include_nop_types_variant.h b/math/dgl/files/patch-third__party_tensorpipe_third__party_libnop_include_nop_types_variant.h new file mode 100644 index 000000000000..004e29c616b6 --- /dev/null +++ b/math/dgl/files/patch-third__party_tensorpipe_third__party_libnop_include_nop_types_variant.h @@ -0,0 +1,28 @@ +--- third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h.orig 2020-07-24 02:13:02 UTC ++++ third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h +@@ -238,7 +238,7 @@ class Variant { + // resulting type. + template + void Construct(Args&&... args) { +- index_ = value_.template Construct(std::forward(args)...); ++ index_ = value_.template Construct<>(std::forward(args)...); + } + void Construct(EmptyVariant) {} + +@@ -255,14 +255,14 @@ class Variant { + // multiple element types. + template + void Assign(TypeTag, U&& value) { +- if (!value_.template Assign(TypeTag{}, index_, std::forward(value))) { ++ if (!value_.template Assign<>(TypeTag{}, index_, std::forward(value))) { + Destruct(); + Construct(TypeTag{}, std::forward(value)); + } + } + template + void Assign(T&& value) { +- if (!value_.template Assign(index_, std::forward(value))) { ++ if (!value_.template Assign<>(index_, std::forward(value))) { + Destruct(); + Construct(std::forward(value)); + }