[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Getfem-commits] (no subject)
From: |
Konstantinos Poulios |
Subject: |
[Getfem-commits] (no subject) |
Date: |
Mon, 4 Mar 2019 04:00:52 -0500 (EST) |
branch: master
commit 69f08ef36e9346327655a2585ad05bd49267c76f
Author: Konstantinos Poulios <address@hidden>
Date: Mon Mar 4 10:00:44 2019 +0100
Delete ambiguous constructor for tensors
---
src/getfem/bgeot_tensor.h | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/src/getfem/bgeot_tensor.h b/src/getfem/bgeot_tensor.h
index 815f6eb..7979157 100644
--- a/src/getfem/bgeot_tensor.h
+++ b/src/getfem/bgeot_tensor.h
@@ -323,12 +323,11 @@ namespace bgeot {
}
tensor(const multi_index &c) { init(c); }
- tensor(size_type i, size_type j)
- { init(multi_index(i, j)); }
- tensor(size_type i, size_type j, size_type k)
- { init(multi_index(i, j, k)); }
+ tensor(size_type i) = delete; // { init(i); }
+ tensor(size_type i, size_type j) { init(i, j); }
+ tensor(size_type i, size_type j, size_type k) { init(i, j, k); }
tensor(size_type i, size_type j, size_type k, size_type l)
- { init(multi_index(i, j, k, l)); }
+ { init(i, j, k, l); }
tensor() {}
};