diff options
author | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:25:28 +0100 |
---|---|---|
committer | Nao Pross <naopross@thearcway.org> | 2019-01-22 15:25:28 +0100 |
commit | 6d4630cbdc7feb3ac3cece46aa3556fd5b592eac (patch) | |
tree | 1f6820dc3b23dc11b6e3eff7436263b698a2f6c6 /mmvec.hpp | |
parent | Fix file name in header of mmvec.hpp (diff) | |
download | libmm-6d4630cbdc7feb3ac3cece46aa3556fd5b592eac.tar.gz libmm-6d4630cbdc7feb3ac3cece46aa3556fd5b592eac.zip |
Add ninja build files to create a shared and static library
Diffstat (limited to 'mmvec.hpp')
-rw-r--r-- | mmvec.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,11 +13,12 @@ * Naoki Pross <naopross@thearcway.org> * 2018 ~ 2019 */ -#include <iostream> +#pragma once #include <cassert> #include <cmath> +#include <iostream> #include <array> #include <algorithm> #include <numeric> @@ -111,8 +112,7 @@ template<typename T, std::size_t d> template<std::size_t n> mm::basic_vec<T, d>& mm::basic_vec<T, d>::operator=(const mm::basic_vec<T, n>& other) { static_assert( - d >= n, - "cannot copy higher dimensional vector into a smaller one" + d >= n, "cannot copy higher dimensional vector into a smaller one" ); std::copy(other.begin(), other.end(), this->begin()); |