Re: Using C++ traits
Robin Rowe <[email protected]> Sat, 01 Mar 2008 15:06:01 -0800
| Newsgroups | gmane.comp.video.cinepaint.devel |
|---|---|
| Message-ID | <[email protected]> |
Michel, > To maybe explain what I have used the traits for, it is because > some of the variables used to make computations have to be an > extended type from the base type used for each channel. For example > if u8 was used, something like 'int' should be used, while for f16, > 'float' should be used. To me, the easiest way to obtain the > needed type is to use traits. It's not a major use, but it is very > convenient. There are many ways to templatize code, and I dislike traits for reasons unrelated to how easy they may seem to write. Still, traits are ok for plug-ins, and I'm willing to take a look at what you're doing with them. Have you checked your plug-in into CVS? Exactly what file do you want me to look at? Robin -- Robin Rowe CinePaint Project Leader Beverly Hills, California www.CinePaint.org ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/