fix msvc warning

This commit is contained in:
gfgtdf 2014-10-22 01:16:56 +02:00
parent 66712590d0
commit 6ad7a525cf

View File

@ -241,6 +241,8 @@ inline std::size_t bit_width() {
*/
template<typename T>
inline std::size_t bit_width(const T& x) {
//msvc 2010 gives an unused parameter warning otherwise
(void)x;
return sizeof(x) * std::numeric_limits<unsigned char>::digits;
}