util/Macros: replace with std::size() (C++17)

This commit is contained in:
Max Kellermann
2019-08-03 13:10:49 +02:00
parent d305f187d5
commit cde6c46d2f
27 changed files with 84 additions and 115 deletions

View File

@@ -19,7 +19,6 @@
#include "Registry.hxx"
#include "InputPlugin.hxx"
#include "util/Macros.hxx"
#include "plugins/TidalInputPlugin.hxx"
#include "plugins/QobuzInputPlugin.hxx"
#include "config.h"
@@ -83,7 +82,7 @@ const InputPlugin *const input_plugins[] = {
nullptr
};
bool input_plugins_enabled[ARRAY_SIZE(input_plugins) - 1];
bool input_plugins_enabled[std::size(input_plugins) - 1];
bool
HasRemoteTagScanner(const char *uri) noexcept