Error: "template instance ... is not a template declaration, it is a function"

Matej Nanut matejnanut at
Mon Jan 16 09:27:00 PST 2012

Hey everyone,

I've gotten that error before but I don't know how I removed it. I don't see
what's wrong, it seems to work most of the time, but not always. I'm sure
there's a reasonable explanation and my understanding of the matter lacks
somewhat. What exactly does it mean?

I'm trying to use "parse!byte(line)", and it reports that error. If I
change it to
"to!byte(line)" it works. How are the "declarations" different?

"line" is a mere string in both cases.

It works fine if I move it into main().

Thank you,

More information about the Digitalmars-d-learn mailing list