diff --git a/vector.cpp b/vector.cpp index 8e50b0ce..272efe9f 100644 --- a/vector.cpp +++ b/vector.cpp @@ -34,8 +34,6 @@ //----------------------------------------------------------------------------- using namespace util; -using std::begin; -using std::end; //----------------------------------------------------------------------------- @@ -204,7 +202,7 @@ util::vector::operator-= (T rhs) { template util::vector& util::vector::operator= (const util::vector &rhs) { - std::copy (begin (rhs.data), end (rhs.data), begin (this->data)); + std::copy (std::begin (rhs.data), std::end (rhs.data), std::begin (this->data)); return *this; } @@ -351,8 +349,8 @@ util::cartesian_to_spherical (const util::vector<3,T> &c) { template bool util::vector::is_zero (void) const { - return std::all_of (begin (this->data), - end (this->data), + return std::all_of (std::begin (this->data), + std::end (this->data), [] (T i) { return almost_zero (i); }); } @@ -367,13 +365,13 @@ util::vector::ZERO (T{0}); template void util::vector::sanity (void) const { - CHECK (std::all_of (begin (this->data), - end (this->data), + CHECK (std::all_of (std::begin (this->data), + std::end (this->data), [] (T i) { return !std::isnan (i); })); } -//----------------------------------------------------------------------------- +/////////////////////////////////////////////////////////////////////////////// template util::vector util::operator* (U a, const util::vector &b)