1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

Don't use double-underscores

double-underscore names are reserved for the compiler/STL.
This commit is contained in:
Jason Rhinelander 2020-02-23 15:35:41 -04:00
parent 4338e38cd6
commit 5ce6c01476

View file

@ -32,7 +32,7 @@ namespace llarp
template < typename InputIt >
constexpr std::size_t
__count_array_bits(InputIt begin, InputIt end)
count_array_bits_impl(InputIt begin, InputIt end)
{
return std::accumulate(begin, end, 0, [](auto acc, auto val) {
return acc + count_bits(val);
@ -43,7 +43,7 @@ namespace llarp
constexpr std::size_t
count_array_bits(const T& array)
{
return __count_array_bits(std::begin(array), std::end(array));
return count_array_bits_impl(std::begin(array), std::end(array));
}
} // namespace bits
} // namespace llarp