diff --git a/euclid.cpp b/euclid.cpp index a977a551..c738c00c 100644 --- a/euclid.cpp +++ b/euclid.cpp @@ -13,7 +13,7 @@ EX namespace euc { #if HDR struct coord : array { explicit coord() = default; - constexpr explicit coord(int x, int y, int z) : array{x,y,z} {} + constexpr explicit coord(int x, int y, int z) : array {{x,y,z}} {} coord& operator += (coord b) { for(int i: {0,1,2}) self[i] += b[i]; return self; } coord& operator -= (coord b) { for(int i: {0,1,2}) self[i] -= b[i]; return self; } coord operator + (coord b) const { coord a = self; return a += b; } diff --git a/nonisotropic.cpp b/nonisotropic.cpp index dafa6485..7ed02620 100644 --- a/nonisotropic.cpp +++ b/nonisotropic.cpp @@ -908,7 +908,7 @@ EX namespace nilv { struct mvec : array { /** these are in nmHeis */ explicit mvec() = default; - constexpr explicit mvec(int x, int y, int z) : array{x, y, z} {} + constexpr explicit mvec(int x, int y, int z) : array{{x, y, z}} {} mvec inverse() { auto& a = *this; return mvec(-a[0], -a[1], -a[2]+a[1] * a[0]);