coord/base: don't use std::fill in constexpr

This commit is contained in:
Danny Robson 2015-10-06 15:24:31 +11:00
parent 0799b2cd75
commit 29c6c50fda

View File

@ -40,7 +40,7 @@ namespace util { namespace coord {
base () = default;
constexpr explicit base (T val)
{ std::fill (std::begin (this->data), std::end (this->data), val); }
{ for (size_t i = 0; i < S; ++i) this->data[i] = val; }
constexpr explicit base (const base<S,T,KLASS,tags...> &rhs) = default;
base& operator= (const base<S,T,KLASS,tags...> &rhs) = default;