diff options
author | Max Kellermann <max@musicpd.org> | 2019-08-03 13:10:49 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2019-08-03 13:10:49 +0200 |
commit | cde6c46d2fff083166c3aca7fbf07df737c07cdc (patch) | |
tree | 51c5706d03b6ea61fa6dad6566dfa67bc090efda /src/util/NumberParser.cxx | |
parent | d305f187d5268a040aca6df62849c33b05308963 (diff) |
util/Macros: replace with std::size() (C++17)
Diffstat (limited to 'src/util/NumberParser.cxx')
-rw-r--r-- | src/util/NumberParser.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/NumberParser.cxx b/src/util/NumberParser.cxx index 4bb47b310..995e9f9ca 100644 --- a/src/util/NumberParser.cxx +++ b/src/util/NumberParser.cxx @@ -30,15 +30,15 @@ #include "NumberParser.hxx" #include "StringView.hxx" -#include "Macros.hxx" #include <algorithm> +#include <iterator> int64_t ParseInt64(StringView s, const char **endptr_r, int base) noexcept { char buffer[32]; - *std::copy_n(s.data, std::min(s.size, ARRAY_SIZE(buffer) - 1), + *std::copy_n(s.data, std::min(s.size, std::size(buffer) - 1), buffer) = 0; char *endptr; |