|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r65910 - branches/release/boost/gil
From: chhenning_at_[hidden]
Date: 2010-10-11 11:55:34
Author: chhenning
Date: 2010-10-11 11:55:32 EDT (Mon, 11 Oct 2010)
New Revision: 65910
URL: http://svn.boost.org/trac/boost/changeset/65910
Log:
Allow for image creating with non-pixel types, like int or float, that satisfy the regular type concept.
Text files modified:
branches/release/boost/gil/pixel.hpp | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
Modified: branches/release/boost/gil/pixel.hpp
==============================================================================
--- branches/release/boost/gil/pixel.hpp (original)
+++ branches/release/boost/gil/pixel.hpp 2010-10-11 11:55:32 EDT (Mon, 11 Oct 2010)
@@ -47,6 +47,8 @@
template <typename PixelBased> struct color_space_type<const PixelBased> : public color_space_type<PixelBased> {};
template <typename PixelBased> struct channel_mapping_type<const PixelBased> : public channel_mapping_type<PixelBased> {};
template <typename PixelBased> struct channel_type<const PixelBased> : public channel_type<PixelBased> {};
+
+template <typename PixelBased> struct is_planar : mpl::false_ {};
template <typename PixelBased> struct is_planar<const PixelBased> : public is_planar<PixelBased> {};
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