go back to C-array (since tests fail)

This commit is contained in:
Joachim Schoeberl 2024-07-16 16:11:20 +02:00
parent 7968ae4588
commit bac10cf1fb

View File

@ -46,8 +46,8 @@ namespace ngcore
class IVec
{
/// data
// T i[(N>0)?N:1];
std::array<T,N> i;
T i[(N>0)?N:1];
// std::array<T,N> i;
public:
///
@ -82,7 +82,8 @@ namespace ngcore
template <typename ARCHIVE>
void DoArchive(ARCHIVE& ar)
{
ar.Do(i.begin(), N);
// ar.Do(i.begin(), N);
ar.Do(i, N);
}
template <int N2, typename T2>