Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] gil_function_requires( view that contains alpha )
From: Eloi Du Bois (eloi.du.bois_at_[hidden])
Date: 2009-12-03 10:02:54

Ok, thanks :) I was looking for a gil concept.

You are right, I am trying to do some SFINAE, now it works well :)
I am trying to do some channel merging with templated functors (one which
uses alpha and another which doesn't).
If you are interested by the code (LGPL) I have made, I can send you what I
have done. Maybe are you interested by adding such functions in a future
version of gil ?
I give you two files that shows the principle. I don't know if that will be
usefull to you, anyway I think it's an interesting feature to put in gil.
(the files I give to you is subject of bugs: it is under development).


2009/12/2 Christian Henning <chhenning_at_[hidden]>

> Eloi,
> >
> > I would do something like that (not tested):
> > BOOST_STATIC_ASSERT(mpl::contains<typename color_space_type<Pixel>::type,
> > alpha_t>::value);
> This works just fine.
> >
> > But I don't know if it is a good idea.
> > Is there a way to do that with gil_function_requires ?
> You mean by adding a new concept to gil? I would just go with the
> metafunction you provided above. What are you trying to do? Some
> Christian
> _______________________________________________
> Boost-users mailing list
> Boost-users_at_[hidden]

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at