forked from Dynamitos/Seele
Memory leak, but otherwise working
This commit is contained in:
1 parent
35966cb5b7
commit
3dc5855d6c
27 files changed
+558
-674
No files matched your search
@@ -746,12 +746,14 @@ public:
|
||||
}
|
||||
StaticArray(std::initializer_list<T> init)
|
||||
{
|
||||
assert(init.size() == N);
|
||||
auto beg = init.begin();
|
||||
for (size_t i = 0; i < N; ++i)
|
||||
{
|
||||
_data[i] = *beg;
|
||||
beg++;
|
||||
if (init.size() == N)
|
||||
{
|
||||
beg++;
|
||||
}
|
||||
}
|
||||
}
|
||||
~StaticArray()
|
||||
|
||||
Reference in new issue
Block a user