normal function and template function conflict

monarch_dodra monarchdodra at gmail.com
Thu Jul 26 11:14:10 PDT 2012


On Thursday, 26 July 2012 at 17:57:31 UTC, Simen Kjaeraas wrote:
> On Thu, 26 Jul 2012 19:18:21 +0200, monarch_dodra 
> <monarchdodra at gmail.com> 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)

Thanks

I haven't seen this construct before. Can you tell me a bit more
about it, or link me to some documentation about it?

I suppose it means "T must be UIntType", but I'd enjoy having a 
broader understanding of it :)


More information about the Digitalmars-d-learn mailing list