Table 3: The results of compiling Example 3 on various compilers
Compiler | Result | Error Message |
Borland 5.5 | OK | |
Comeau 4.3.0.1 | OK | |
EDG 3.0.1 | OK | |
Intel 6.0.1 | OK | |
gcc 2.95.3 | OK | |
gcc 3.1.1 | OK | |
gcc 3.2 | OK | |
Metrowerks 8.2 | OK | |
MS VC++ 6.0 | Error | syntax error (just can't handle it) |
MS VC++ 7.0 | Error | friend declaration incorrectly interpreted as declaring a brand-new (and undefined) ordinary non-template function, even though we used template syntax |
MS VC++ 7.1 beta | OK |