util/Macros: replace with std::size() (C++17)
This commit is contained in:
@@ -46,9 +46,10 @@
|
||||
#include "plugins/MpcdecDecoderPlugin.hxx"
|
||||
#include "plugins/FluidsynthDecoderPlugin.hxx"
|
||||
#include "plugins/SidplayDecoderPlugin.hxx"
|
||||
#include "util/Macros.hxx"
|
||||
#include "util/RuntimeError.hxx"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
#include <string.h>
|
||||
|
||||
const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
@@ -117,7 +118,7 @@ const struct DecoderPlugin *const decoder_plugins[] = {
|
||||
};
|
||||
|
||||
static constexpr unsigned num_decoder_plugins =
|
||||
ARRAY_SIZE(decoder_plugins) - 1;
|
||||
std::size(decoder_plugins) - 1;
|
||||
|
||||
/** which plugins have been initialized successfully? */
|
||||
bool decoder_plugins_enabled[num_decoder_plugins];
|
||||
|
||||
Reference in New Issue
Block a user