summaryrefslogtreecommitdiffstats
path: root/mmvec.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'mmvec.hpp')
-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());