normal function and template function conflict

Jacob Carlborg doob at me.com
Thu Jul 26 11:49:52 PDT 2012


On 2012-07-26 19:57, Simen Kjaeraas wrote:

>> 2) Is there a "correct" workaround?
>
> Exactly what you did. Though, for brevity, you would write this:
>
> void seed(T : UIntType)(T value = default_seed)

Since a template function is actually not wanted this would be the 
correct workaround:

void seed () (UIntType value = default_seed)

Less typing as well.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list