One step at a time.

Don't worry about this specialization.  Just do "over" the way we talked about 
before.

When we have "over" settled, I'll take a hard at what we have and think about 
how to cleanly make a way to generalize it so we don't have to duplicate the 
type specialization for every operation.  But sweep this detail under the rug 
for right now.

        -- lg


On Jun 19, 2012, at 9:28 AM, Stefan Stavrev wrote:

> I am trying to put type specialization in one general function. I am not sure 
> how to implement variable size argument list, should I use features from the 
> new c++ standard, should I use va_list, or else ? Here is some pseudo code 
> for specializing 5 types:
> 
> http://ideone.com/pgLwk
> 
> The code is repeating a lot don't worry. If I make this work it is still a 
> whole lot better then having more type specialization functions for each 
> algorithm I will work on. The call hierarchy would be ImageBufAlgo::over -> 
> speciaize_type -> over_alg.
> 
> You can look at it as three layers: public -> type specialization -> 
> algortihm. In the public layer we can have input validation and in the 
> algorithm layer the algorithm itself as pure as possible.
> _______________________________________________
> Oiio-dev mailing list
> [email protected]
> http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

--
Larry Gritz
[email protected]


_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to