Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r85506 - trunk/boost/gil/extension/toolbox/color_spaces
From: chhenning_at_[hidden]
Date: 2013-08-28 19:04:09


Author: chhenning
Date: 2013-08-28 19:04:09 EDT (Wed, 28 Aug 2013)
New Revision: 85506
URL: http://svn.boost.org/trac/boost/changeset/85506

Log:
Added missing typename specifiers.

Text files modified:
   trunk/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp | 36 ++++++++++++++++++------------------
   1 files changed, 18 insertions(+), 18 deletions(-)

Modified: trunk/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp
==============================================================================
--- trunk/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp Wed Aug 28 17:33:26 2013 (r85505)
+++ trunk/boost/gil/extension/toolbox/color_spaces/ycbcr.hpp 2013-08-28 19:04:09 EDT (Wed, 28 Aug 2013) (r85506)
@@ -34,7 +34,7 @@
 namespace ycbcr_601_color_space
 {
 /// \brief Luminance
-struct y_t {};
+struct y_t {};
 /// \brief Blue chrominance component
 struct cb_t {};
 /// \brief Red chrominance component
@@ -44,7 +44,7 @@
 namespace ycbcr_709_color_space
 {
 /// \brief Luminance
-struct y_t {};
+struct y_t {};
 /// \brief Blue chrominance component
 struct cb_t {};
 /// \brief Red chrominance component
@@ -81,11 +81,11 @@
         template < typename SRCP, typename DSTP >
         void operator()( const SRCP& src, DSTP& dst ) const
         {
- typedef channel_type< DSTP >::type dst_channel_t;
+ typedef typename channel_type< DSTP >::type dst_channel_t;
         convert( src, dst
- , boost::is_same< mpl::int_< sizeof( dst_channel_t ) >::type
- , mpl::int_<1>::type
- >::type()
+ , typename boost::is_same< typename mpl::int_< sizeof( dst_channel_t ) >::type
+ , typename mpl::int_<1>::type
+ >::type()
                );
         }
 
@@ -103,8 +103,8 @@
                 using namespace boost::algorithm;
         using namespace ycbcr_601_color_space;
 
- typedef channel_type< Src_Pixel >::type src_channel_t;
- typedef channel_type< Dst_Pixel >::type dst_channel_t;
+ typedef typename channel_type< Src_Pixel >::type src_channel_t;
+ typedef typename channel_type< Dst_Pixel >::type dst_channel_t;
 
                 src_channel_t y = channel_convert<src_channel_t>( get_color(src, y_t()));
                 src_channel_t cb = channel_convert<src_channel_t>( get_color(src, cb_t()));
@@ -135,7 +135,7 @@
         using namespace boost::algorithm;
         using namespace ycbcr_601_color_space;
 
- typedef channel_type< Dst_Pixel >::type dst_channel_t;
+ typedef typename channel_type< Dst_Pixel >::type dst_channel_t;
 
         double y = get_color( src, y_t() );
         double cb = get_color( src, cb_t() );
@@ -174,8 +174,8 @@
         {
         using namespace ycbcr_601_color_space;
 
- typedef channel_type< SRCP >::type src_channel_t;
- typedef channel_type< DSTP >::type dst_channel_t;
+ typedef typename channel_type< SRCP >::type src_channel_t;
+ typedef typename channel_type< DSTP >::type dst_channel_t;
 
                 src_channel_t red = channel_convert<src_channel_t>( get_color(src, red_t()));
                 src_channel_t green = channel_convert<src_channel_t>( get_color(src, green_t()));
@@ -187,7 +187,7 @@
 
                 get_color( dst, y_t() ) = (dst_channel_t) y;
                 get_color( dst, cb_t() ) = (dst_channel_t) cb;
- get_color( dst, cr_t() ) = (dst_channel_t) cr;
+ get_color( dst, cr_t() ) = (dst_channel_t) cr;
         }
 };
 
@@ -202,8 +202,8 @@
         {
         using namespace ycbcr_709_color_space;
 
- typedef channel_type< SRCP >::type src_channel_t;
- typedef channel_type< DSTP >::type dst_channel_t;
+ typedef typename channel_type< SRCP >::type src_channel_t;
+ typedef typename channel_type< DSTP >::type dst_channel_t;
 
                 src_channel_t red = channel_convert<src_channel_t>( get_color(src, red_t()));
                 src_channel_t green = channel_convert<src_channel_t>( get_color(src, green_t()));
@@ -215,7 +215,7 @@
 
                 get_color( dst, y_t() ) = (dst_channel_t) y;
                 get_color( dst, cb_t() ) = (dst_channel_t) cb;
- get_color( dst, cr_t() ) = (dst_channel_t) cr;
+ get_color( dst, cr_t() ) = (dst_channel_t) cr;
         }
 };
 
@@ -230,8 +230,8 @@
         {
         using namespace ycbcr_709_color_space;
 
- typedef channel_type< SRCP >::type src_channel_t;
- typedef channel_type< DSTP >::type dst_channel_t;
+ typedef typename channel_type< SRCP >::type src_channel_t;
+ typedef typename channel_type< DSTP >::type dst_channel_t;
 
                 src_channel_t y = channel_convert<src_channel_t>( get_color(src, y_t()) );
                 src_channel_t cb_clipped = channel_convert<src_channel_t>( get_color(src, cb_t()) - 128 );
@@ -243,7 +243,7 @@
 
                 get_color( dst, red_t() ) = (dst_channel_t) red;
                 get_color( dst, green_t() ) = (dst_channel_t) green;
- get_color( dst, blue_t() ) = (dst_channel_t) blue;
+ get_color( dst, blue_t() ) = (dst_channel_t) blue;
         }
 };
 


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