From c107bd610208c5bc6d67258105725f86de276fd9 Mon Sep 17 00:00:00 2001 From: Antonio Sanchez Date: Fri, 19 Nov 2021 04:23:25 +0000 Subject: [PATCH] Fix errors for windows build. --- unsupported/Eigen/CXX11/src/Tensor/TensorIO.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h index b958f6abb..587add3fe 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIO.h @@ -298,14 +298,14 @@ struct TensorPrinter { } for (std::size_t k = 0; k < rank; k++) { std::size_t separator_index = (k < fmt.separator.size()) ? k : fmt.separator.size() - 1; - if (is_at_end[k] and - (!is_at_end_before_newline or fmt.separator[separator_index].find('\n') != std::string::npos)) { + if (is_at_end[k] && + (!is_at_end_before_newline || fmt.separator[separator_index].find('\n') != std::string::npos)) { separator << fmt.separator[separator_index]; } } for (std::size_t k = 0; k < rank; k++) { std::size_t spacer_index = (k < fmt.spacer.size()) ? k : fmt.spacer.size() - 1; - if (i != 0 and is_at_begin_after_newline and (!is_at_begin[k] or k == 0)) { + if (i != 0 && is_at_begin_after_newline && (!is_at_begin[k] || k == 0)) { prefix << fmt.spacer[spacer_index]; } }