namespace SecurityManager {
namespace {
-namespace detail {
template <class T, size_t S>
-uint8_t(&arraySizeHelper(T (&)[S]))[S];
-
-template <class T, size_t S>
-uint8_t(&arraySizeHelper(std::array<T, S> const &))[S];
-} //namespace detail
-
-#define arraySize(A) (sizeof(detail::arraySizeHelper((A))))
+constexpr size_t arraySize(T (&)[S])
+{
+ return S;
+}
constexpr const char *g_queries[StmtTypeCount] = {
[int(StmtType::EAddApplication)] = "INSERT INTO user_app_pkg_view (app_name, pkg_name, uid, version, author_name, is_hybrid)"