Files
nixpkgs/pkgs/development/python-modules/torch/source/clang19-template-warning.patch
2025-05-05 21:50:56 +02:00

32 lines
1.3 KiB
Diff

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 <typename... Args>
void Construct(Args&&... args) {
- index_ = value_.template Construct(std::forward<Args>(args)...);
+ index_ = value_.template Construct<>(std::forward<Args>(args)...);
}
void Construct(EmptyVariant) {}
@@ -255,14 +255,14 @@ class Variant {
// multiple element types.
template <typename T, typename U>
void Assign(TypeTag<T>, U&& value) {
- if (!value_.template Assign(TypeTag<T>{}, index_, std::forward<U>(value))) {
+ if (!value_.template Assign<>(TypeTag<T>{}, index_, std::forward<U>(value))) {
Destruct();
Construct(TypeTag<T>{}, std::forward<U>(value));
}
}
template <typename T>
void Assign(T&& value) {
- if (!value_.template Assign(index_, std::forward<T>(value))) {
+ if (!value_.template Assign<>(index_, std::forward<T>(value))) {
Destruct();
Construct(std::forward<T>(value));
}