summaryrefslogtreecommitdiffstats
path: root/mmvec.hpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2019-01-22 15:25:28 +0100
committerNao Pross <naopross@thearcway.org>2019-01-22 15:25:28 +0100
commit6d4630cbdc7feb3ac3cece46aa3556fd5b592eac (patch)
tree1f6820dc3b23dc11b6e3eff7436263b698a2f6c6 /mmvec.hpp
parentFix file name in header of mmvec.hpp (diff)
downloadlibmm-6d4630cbdc7feb3ac3cece46aa3556fd5b592eac.tar.gz
libmm-6d4630cbdc7feb3ac3cece46aa3556fd5b592eac.zip
Add ninja build files to create a shared and static library
Diffstat (limited to '')
-rw-r--r--mmvec.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/mmvec.hpp b/mmvec.hpp
index f371d41..4bac658 100644
--- a/mmvec.hpp
+++ b/mmvec.hpp
@@ -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());