diff --git a/include/highfive/xtensor.hpp b/include/highfive/xtensor.hpp index 3e62e4632..a9e034eb0 100644 --- a/include/highfive/xtensor.hpp +++ b/include/highfive/xtensor.hpp @@ -79,7 +79,7 @@ struct xtensor_inspector { }; template -struct inspector> : public xtensor_inspector, true> { +struct inspector>: public xtensor_inspector, true> { private: using super = xtensor_inspector, true>; @@ -91,7 +91,7 @@ struct inspector> : public xtensor_inspector }; template -struct inspector> : public xtensor_inspector, false> { +struct inspector>: public xtensor_inspector, false> { private: using super = xtensor_inspector, false>; diff --git a/tests/unit/data_generator.hpp b/tests/unit/data_generator.hpp index adbc32de2..0a66c9450 100644 --- a/tests/unit/data_generator.hpp +++ b/tests/unit/data_generator.hpp @@ -25,7 +25,7 @@ namespace HighFive { namespace testing { -template +template std::vector lstrip(const Dims& indices, size_t n) { std::vector subindices(indices.size() - n); for (size_t i = 0; i < subindices.size(); ++i) { @@ -35,7 +35,7 @@ std::vector lstrip(const Dims& indices, size_t n) { return subindices; } -template +template size_t ravel(std::vector& indices, const Dims& dims) { size_t rank = dims.size(); size_t linear_index = 0; @@ -49,7 +49,7 @@ size_t ravel(std::vector& indices, const Dims& dims) { return linear_index; } -template +template std::vector unravel(size_t flat_index, const Dims& dims) { size_t rank = dims.size(); size_t ld = 1; @@ -63,7 +63,7 @@ std::vector unravel(size_t flat_index, const Dims& dims) { return indices; } -template +template static size_t flat_size(const Dims& dims) { size_t n = 1; for (auto d: dims) {