[Boost-bugs] [Boost C++ Libraries] #2211: Can not create image of Regular type

Subject: [Boost-bugs] [Boost C++ Libraries] #2211: Can not create image of Regular type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2008-08-18 05:06:38

#2211: Can not create image of Regular type
 Reporter: john.femiani_at_[hidden] | Owner: hljin
     Type: Bugs | Status: new
Milestone: Boost 1.36.0 | Component: GIL
  Version: Boost 1.36.0 | Severity: Problem
 Keywords: |
 The GIL docs say images, views, and locator's can be created from any type
 that satisfies the GIL concept 'Regular'

 quoted from boost/gil/image.hpp:
 /// Note that its element type does not have to be a pixel. \p image can
 be instantiated with any Regular element,
 /// in which case it models the weaker RandomAccess2DImageConcept and does
 not model PixelBasedConcept

 Unfortunately this does not seem to be true, even the simple test attached
 fails to compile.

 Depending upon whether I define the image to be planar or not, I get
 errors with different metafunctions:

 for IsPlanar == true:
      the error is in the view_type_pixel metafunction, which invokes
 if IsPlanar == false:
     the error is in the is_planar metafunction.


Ticket URL: <http://svn.boost.org/trac/boost/ticket/2211>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:49:58 UTC