From f58985c68cb695124007c75afd371fd4fa9e8892 Mon Sep 17 00:00:00 2001 From: Eduard Valeyev Date: Wed, 8 Dec 2021 10:04:37 -0500 Subject: [PATCH] TiledArray/tensor.h: must #include --- src/TiledArray/tensor.h | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/TiledArray/tensor.h b/src/TiledArray/tensor.h index e369539c6e..f24621077c 100644 --- a/src/TiledArray/tensor.h +++ b/src/TiledArray/tensor.h @@ -27,12 +27,17 @@ #define TILEDARRAY_TENSOR_H__INCLUDED #include -#include -#include + #include + #include #include +#include + +#include +#include + namespace TiledArray { // Template aliases for TensorInterface objects @@ -94,15 +99,15 @@ inline std::ostream& operator<<(std::ostream& os, const T& t) { return os; } -template>> -inline std::ostream& operator<<(std::ostream& os, const T& t){ - os << t.range() << " {" << std::endl; // Outer tensor's range - for(auto idx : t.range()){ // Loop over inner tensors +template >> +inline std::ostream& operator<<(std::ostream& os, const T& t) { + os << t.range() << " {" << std::endl; // Outer tensor's range + for (auto idx : t.range()) { // Loop over inner tensors const auto& inner_t = t(idx); os << " " << idx << ":" << inner_t << std::endl; } - os << "}"; // End outer tensor + os << "}"; // End outer tensor return os; }