mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-30 21:23:16 +00:00
Revert "Revert this to inline."
This reverts commit f721e824f478b7443528dc801bbe14e534c3c6f7.
This commit is contained in:
parent
f721e824f4
commit
d04917bb3a
@ -140,7 +140,7 @@ constexpr std::size_t bit_width(const T&) {
|
||||
* type.
|
||||
*/
|
||||
template<typename N>
|
||||
inline unsigned int count_ones(N n) {
|
||||
constexpr unsigned int count_ones(N n) {
|
||||
unsigned int r = 0;
|
||||
while (n) {
|
||||
n &= n-1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user