
13 Feb
2013
13 Feb
'13
5:48 p.m.
2013/2/14 Christian Henning <chhenning@gmail.com>
Hi,
I wonder why `get_num_bits` only applies to packed_channel_reference & packed_dynamic_channel_reference.
Wouldn't it be nice if it also applies to packed_channel_value & those bitsN ?
Good point. I have fixed that on the trunk.
Thanks, but not for bitsN? Like: template <typename T, class = void> struct get_num_bits; template<class T> struct get_num_bits<T, typename enable_if_c<is_integral<T>::value && !is_class<T>::value>::type> : mpl::int_<sizeof(T) * 8> {}; And you could avoid all the const duplicates as: template <typename T> struct get_num_bits<T const> : get_num_bits<T> {}; Regards