mirror of
https://github.com/boostorg/gil.git
synced 2026-02-20 02:42:11 +00:00
Merge pull request #138 from mloskot/ml/fix-toolbox-get_num_bits-as-unsigned
Base get_num_bits metafunction for T on mpl::size_t instead of mpl::int_
This commit is contained in:
@@ -22,6 +22,7 @@
|
||||
#include <boost/gil/channel.hpp>
|
||||
|
||||
#include <boost/mpl/int.hpp>
|
||||
#include <boost/mpl/size_t.hpp>
|
||||
#include <boost/type_traits/is_integral.hpp>
|
||||
#include <boost/type_traits/is_class.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
@@ -64,7 +65,7 @@ struct get_num_bits< T
|
||||
, mpl::not_< is_class< T > >
|
||||
>
|
||||
>::type
|
||||
> : mpl::int_< sizeof(T) * 8 >
|
||||
> : mpl::size_t< sizeof(T) * 8 >
|
||||
{};
|
||||
|
||||
} // namespace gil
|
||||
|
||||
Reference in New Issue
Block a user