Boost logo

Boost Users :

Subject: Re: [Boost-users] [GIL] gil_function_requires( view that contains alpha )
From: Christian Henning (chhenning_at_[hidden])
Date: 2009-12-02 13:37:50


> 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


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