Use std::size in place of std::extent

* Fixes RIPD-269
This commit is contained in:
Howard Hinnant
2020-05-14 17:21:53 -04:00
committed by manojsdoshi
parent 0290d0b82c
commit 2d23e7bd18
3 changed files with 9 additions and 20 deletions

View File

@@ -321,11 +321,8 @@ public:
LedgerSeq BIGINT UNSIGNED \
);",
"CREATE INDEX SeqLedger ON Ledgers(LedgerSeq);"};
int dbInitCount = std::extent<decltype(dbInit)>::value;
for (int i = 0; i < dbInitCount; ++i)
{
s << dbInit[i];
}
for (auto const c : dbInit)
s << c;
char lh[65];
memset(lh, 'a', 64);
lh[64] = '\0';