Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82855 - trunk/boost/gil/extension/toolbox/metafunctions
From: chhenning_at_[hidden]
Date: 2013-02-13 12:21:31


Author: chhenning
Date: 2013-02-13 12:21:30 EST (Wed, 13 Feb 2013)
New Revision: 82855
URL: http://svn.boost.org/trac/boost/changeset/82855

Log:
Added packed_channel_value to get_num_bits metafunction.
Text files modified:
   trunk/boost/gil/extension/toolbox/metafunctions/get_num_bits.hpp | 11 +++++++++++
   1 files changed, 11 insertions(+), 0 deletions(-)

Modified: trunk/boost/gil/extension/toolbox/metafunctions/get_num_bits.hpp
==============================================================================
--- trunk/boost/gil/extension/toolbox/metafunctions/get_num_bits.hpp (original)
+++ trunk/boost/gil/extension/toolbox/metafunctions/get_num_bits.hpp 2013-02-13 12:21:30 EST (Wed, 13 Feb 2013)
@@ -53,6 +53,17 @@
     BOOST_STATIC_CONSTANT( int, value = i );
 };
 
+template< int N >
+struct get_num_bits< packed_channel_value< N > >
+{
+ BOOST_STATIC_CONSTANT( int, value = N );
+};
+
+template< int N >
+struct get_num_bits< const packed_channel_value< N > >
+{
+ BOOST_STATIC_CONSTANT( int, value = N );
+};
 
 } // namespace gil
 } // namespace boost


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk