coord/base: don't use std::fill in constexpr constructor
This commit is contained in:
parent
3c9dcba2fb
commit
8f216a0a27
@ -57,8 +57,11 @@ namespace util::coord {
|
|||||||
|
|
||||||
/// constructs an instance where all elements are initialised to `val'.
|
/// constructs an instance where all elements are initialised to `val'.
|
||||||
constexpr explicit
|
constexpr explicit
|
||||||
base (T val)
|
base (T fill)
|
||||||
{ std::fill (begin (), end (), val); }
|
{
|
||||||
|
for (decltype(S) i = 0; i < S; ++i)
|
||||||
|
this->data[i] = fill;
|
||||||
|
}
|
||||||
|
|
||||||
constexpr base (const base<S,T,KLASS,tags...> &rhs) = default;
|
constexpr base (const base<S,T,KLASS,tags...> &rhs) = default;
|
||||||
base& operator= (const base<S,T,KLASS,tags...> &rhs) = default;
|
base& operator= (const base<S,T,KLASS,tags...> &rhs) = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user