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

Reply via email to