Function template conflicts

Henrik Eneroth Henrik_member at pathlink.com
Thu Jun 29 06:09:05 PDT 2006


Also... DDoc seems to ignore documentation for function templates. An example of
how I am currently doing it:

****************************************************************************
* Create a premultiplied colour based on the given colour.
*
* Params:
*  colour = A colour [rgba!(datatype)] containing the red, green, blue and alpha
values you wish to use.
***************************************************************************/
rgbaType rgba_pre(rgbaType)( rgbaType colour )
{
rgbaType tmp = new rgbaType(colour);
tmp.premultiply();
return tmp;
}

Unfortunately, this shows up as absolutely nothing in the documentation. Any
ideas?


Regards,

Henrik





More information about the Digitalmars-d-learn mailing list