Subject: Re: [boost] [gil] numeric extension, arithmetic operators
From: TONGARI (tongari95_at_[hidden])
Date: 2013-04-08 10:50:23
2013/4/8 Christian Henning <chhenning_at_[hidden]>
> 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
> > 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:
> rgb8_pixel = bgr8_pixel + rgb8_pixel
You can return a "View" that is lazily evaluated, like what I did with
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk