Topic: Friend template of a template (correction)


Author: Jason Merrill <jason@cygnus.com>
Date: 1997/01/29
Raw View
>>>>> Kresimir Fresl <fresl@grad.hr> writes:

> In my previous article I wrote:
>> With g++ (2.7.2) and Watcom C++ (10.6) this code can be
>> compiled without `forward declaration' of class B, while
>> Comeau C++ 4.0 requires it.

> Instead of `class B' it should be `class A'.

FYI, g++ 2.8.0 will also require the forward declaration.

Jason
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Kresimir Fresl <fresl@grad.hr>
Date: 1997/01/27
Raw View
In my previous article I wrote:

> With g++ (2.7.2) and Watcom C++ (10.6) this code can be
> compiled without `forward declaration' of class B, while
> Comeau C++ 4.0 requires it.

Instead of `class B' it should be `class A'.


K. Fresl
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]