at master 1.4 kB view raw
1Submodule third_party/libnop contains modified content 2diff --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 3index cffbde1..b6ebfab 100644 4--- a/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h 5+++ b/third_party/tensorpipe/third_party/libnop/include/nop/types/variant.h 6@@ -238,7 +238,7 @@ class Variant { 7 // resulting type. 8 template <typename... Args> 9 void Construct(Args&&... args) { 10- index_ = value_.template Construct(std::forward<Args>(args)...); 11+ index_ = value_.template Construct<>(std::forward<Args>(args)...); 12 } 13 void Construct(EmptyVariant) {} 14 15@@ -255,14 +255,14 @@ class Variant { 16 // multiple element types. 17 template <typename T, typename U> 18 void Assign(TypeTag<T>, U&& value) { 19- if (!value_.template Assign(TypeTag<T>{}, index_, std::forward<U>(value))) { 20+ if (!value_.template Assign<>(TypeTag<T>{}, index_, std::forward<U>(value))) { 21 Destruct(); 22 Construct(TypeTag<T>{}, std::forward<U>(value)); 23 } 24 } 25 template <typename T> 26 void Assign(T&& value) { 27- if (!value_.template Assign(index_, std::forward<T>(value))) { 28+ if (!value_.template Assign<>(index_, std::forward<T>(value))) { 29 Destruct(); 30 Construct(std::forward<T>(value)); 31 }