diff --git a/include/TAT/structure/tensor.hpp b/include/TAT/structure/tensor.hpp index c6cc6e05a..03e411d5c 100644 --- a/include/TAT/structure/tensor.hpp +++ b/include/TAT/structure/tensor.hpp @@ -23,6 +23,7 @@ #include #include +#include #include #include #include @@ -55,9 +56,9 @@ namespace TAT { Cut(Size i, double f) : remain_cut(i), relative_cut(f) { } Cut(double f, Size i) : remain_cut(i), relative_cut(f) { } - Cut() : remain_cut(-1), relative_cut(0) { } + Cut() : remain_cut(std::numeric_limits::max()), relative_cut(0) { } Cut(Size i) : remain_cut(i), relative_cut(0) { } - Cut(double f) : remain_cut(-1), relative_cut(f) { } + Cut(double f) : remain_cut(std::numeric_limits::max()), relative_cut(f) { } [[deprecated("NoCut is deprecated, use Cut directly")]] Cut(NoCut) : Cut() { } [[deprecated("RelativeCut is deprecated, use Cut directly")]] Cut(RelativeCut c) : Cut(c.value) { }