Last attempt

This commit is contained in:
Andrew Cassidy 2022-06-28 16:22:29 -07:00
parent 2d7aeeb2d8
commit bfba3228f0

View File

@ -68,7 +68,7 @@ template <typename V> constexpr size_t vector_dims = vector_stats<V>::dims;
template <typename R, typename T, size_t N> class VecBase {
public:
constexpr VecBase(T scalar = T(0)) { _c.fill(scalar); }
constexpr VecBase(T scalar) : _c{} { _c.fill(scalar); }
protected:
const R &_at(size_t index) const { return _c.at(index); }