Submodule third_party/libnop contains modified content diff --git a/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h b/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h index cffbde1..b6ebfab 100644 --- a/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h +++ b/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)); }