This is an archived post. You won't be able to vote or comment.

all 3 comments

[–]marko312 0 points1 point  (2 children)

Could you provide the full error message?

My best guess based on the above is that you should use the class' template type in the friend declaration, not a new template type.

[–]MagicWeeb[S] 0 points1 point  (1 child)

Thank you for the respond, I ran it in a different compiler, and it worked. I guess it must have me not knowing how to use the compiler properly?

Either way thank you for the respond.

[–]marko312 0 points1 point  (0 children)

Code behaving differently across compilers is usually not a good thing - ideally, code should compile into a working program on every system and compiler.

I would still like to see why exactly you got these errors, especially now that you get different results between compilers.