Boost logo

Boost :

Subject: Re: [boost] [gil] numeric extension, arithmetic operators
From: Christian Henning (chhenning_at_[hidden])
Date: 2013-04-08 10:19:09


On Mon, Apr 8, 2013 at 10:12 AM, Harg Tholan <hargtholan_at_[hidden]> wrote:

> Hey,
>
> Christian, do you mean "you *can* just write"?
> Anyway, I will try to derive a class from Pixel overloading the arithmetic
> operators by wrapping the pixel numeric operations.
>

How will you define the return type? You know it can be anything that's
compatible to the src types:

e.g.:

rgb8_pixel = bgr8_pixel + rgb8_pixel

Christian


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk