diff --git a/conanfile.py b/conanfile.py index 515f7902..404a0c00 100644 --- a/conanfile.py +++ b/conanfile.py @@ -89,7 +89,7 @@ class UnitsConan(ConanFile): self.build_requires("Catch2/2.11.0@catchorg/stable") # TODO update doxygen to the latest version when available self.build_requires("doxygen_installer/1.8.17@bincrafters/stable") - self.build_requires("linear_algebra/0.6.0@public-conan/testing") + self.build_requires("linear_algebra/0.6.0@public-conan/stable") def build(self): cmake = self._configure_cmake() diff --git a/example/linear_algebra.cpp b/example/linear_algebra.cpp index aff85148..b93794c6 100644 --- a/example/linear_algebra.cpp +++ b/example/linear_algebra.cpp @@ -33,7 +33,7 @@ template std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector& v) { os << "|"; - for (auto i = 0; i < v.size(); ++i) { + for (size_t i = 0; i < v.size(); ++i) { os << fmt::format(" {:>9}", v(i)); } os << " |"; @@ -43,9 +43,9 @@ std::ostream& operator<<(std::ostream& os, const std::experimental::math::vector template std::ostream& operator<<(std::ostream& os, const std::experimental::math::matrix& v) { - for (auto i = 0; i < v.rows(); ++i) { + for (size_t i = 0; i < v.rows(); ++i) { os << "|"; - for (auto j = 0; j < v.columns(); ++j) { + for (size_t j = 0; j < v.columns(); ++j) { os << fmt::format(" {:>9}", v(i, j)); } os << (i != v.rows() - 1 ? " |\n" : " |");