Merge pull request #8152 from lioncash/array-size

Common/CommonFuncs: Remove now-unneccessary ArraySize function
This commit is contained in:
Léo Lam
2019-06-06 13:35:57 +02:00
committed by GitHub
26 changed files with 280 additions and 229 deletions

View File

@ -4,17 +4,9 @@
#pragma once
#include <cstddef>
#include <string>
#include "Common/CommonTypes.h"
// Will fail to compile on a non-array:
template <typename T, size_t N>
constexpr size_t ArraySize(T (&arr)[N])
{
return N;
}
#ifndef _WIN32
// go to debugger mode