aboutsummaryrefslogtreecommitdiffstats
path: root/common/alcomplex.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-09-25 11:57:18 -0700
committerChris Robinson <[email protected]>2023-09-25 19:56:04 -0700
commit4f596d16cc6a25775438a16b2cdf8367b8342368 (patch)
treefe84c03d013eef94c576a4d18a27e630aded4342 /common/alcomplex.cpp
parentd74dd7b2dc530c02e41e7a6331d422aacad9827b (diff)
Use std::array instead of a C-style array
Diffstat (limited to 'common/alcomplex.cpp')
-rw-r--r--common/alcomplex.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/alcomplex.cpp b/common/alcomplex.cpp
index dad62d0a..5adb324a 100644
--- a/common/alcomplex.cpp
+++ b/common/alcomplex.cpp
@@ -4,6 +4,7 @@
#include "alcomplex.h"
#include <algorithm>
+#include <array>
#include <cassert>
#include <cmath>
#include <cstddef>
@@ -34,7 +35,7 @@ template<size_t N>
struct BitReverser {
static_assert(N <= sizeof(ushort)*8, "Too many bits for the bit-reversal table.");
- ushort2 mData[BitReverseCounter(N)]{};
+ std::array<ushort2,BitReverseCounter(N)> mData{};
constexpr BitReverser()
{