How use "toHash" without cast

Namespace rswhite4 at googlemail.com
Wed Jun 20 15:31:33 PDT 2012


hello, iI have written a template vector class. Now I need to 
rewrite the tohash function in dependence to the coords. But i 
have no clue because it doesn't allow any casts or convertions, 
because its a @trusted method.
Because of that i cannot override toHash for float, real or 
double.
Any ideas?


More information about the Digitalmars-d-learn mailing list