Perhaps I
do mean to be harsh when I say this but you should really learn to read. Can you see why:
Quote:
The fact that you think the first example should work shows you lack a fundamental understand of what you are actually doing.
|
is
not an apporpriate response to the sentence
Quote:
Why is it that this code (correctly, in my opinion) fails to compile:
|
As you can see, I did
not expect the first example to work. If you are going to risk being harsh, you should make sure that you know what you are talking about...
Now, for clarification (at least one of you seems to need it), I
expect different
struct declarations to be considered different types (hence, my statement about "(correctly, IMO) fails to compile"). My question was why
templated
structs aren't considered different types...
It's tempting to debate the merits of C++ versus Java but that would honestly diverge from the thread topic and risk starting a religious flame war...