Boost logo

Boost Users :

Subject: Re: [Boost-users] [gil] Using gil::color_converted_view with gil::for_each_pixel (Christian Henning)
From: Chris Yuen (kizzx2+boost_at_[hidden])
Date: 2010-12-06 12:44:30


Dear Christian,

> >
> > 2. This compiles
> >
> > gil::gil_function_requires<gil::ImageViewConcept<int> >();

> What do you mean? This shouldn't compile?

I was under the impression that the point of gil_function_requires is to do
static checking to ensure that a type is compatible with an GIL type?
(Something akin to BOOST_CONCEPT_ASSERT)

Is an int supposed to be compatible with ImageViewConcept? From the GIL
tutorial http://stlab.adobe.com/gil/html/giltutorial.html#GenericVersionSec,
it seems like it's being used as a static type check, and int clearly isn't
compatible to an image view. Am I missing something?

Best regards,
Chris Yuen



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net