
18 Oct
2006
18 Oct
'06
12:08 a.m.
Lubomir Bourdev wrote:
This is why in GIL we allow the type of the result to be specified explicitly upon invoking the operation. Promotion traits can at best be useful for a reasonable default, but even then we feel that they belong in boost::type_traits and not in an image library, as the problem generalizes beyond images.
I agree. I am not quite fond of monolithic libraries that do everything. Promotion traits and clamping, for example, can also be useful for, say, signal processing of audio, among other things. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net