From 9a79c2f7b83fae35eef47ca307d834ba5a632689 Mon Sep 17 00:00:00 2001 From: Derek Schuff Date: Wed, 3 Feb 2016 15:42:26 -0800 Subject: De-inline signed wrapper templates for bit manipulation functions This fixes the clang build. --- src/support/bits.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/support/bits.h') diff --git a/src/support/bits.h b/src/support/bits.h index 3049a2cf1..bbafb29d4 100644 --- a/src/support/bits.h +++ b/src/support/bits.h @@ -53,15 +53,15 @@ extern template int CountLeadingZeroes(uint64_t); // Convenience signed -> unsigned. It usually doesn't make much sense to use bit // functions on signed types. template -inline int PopCount(T v) { +int PopCount(T v) { return PopCount(typename std::make_unsigned::type(v)); } template -inline int CountTrailingZeroes(T v) { +int CountTrailingZeroes(T v) { return CountTrailingZeroes(typename std::make_unsigned::type(v)); } template -inline int CountLeadingZeroes(T v) { +int CountLeadingZeroes(T v) { return CountLeadingZeroes(typename std::make_unsigned::type(v)); } -- cgit v1.2.3