Topic: declaring template class as friend


Author: Thant Tessman <thant@acm.org>
Date: 2000/01/05
Raw View

Am I reading the C++ standard right?

        template <class T>
        struct Foo {};

        struct Bar {
          template <class T>
          friend struct Foo;
        };

The reason I ask is because the logic of this syntax escapes me and it
doesn't work with MSVC++6SP3 and I can't find a bug report on it.

-thant


[ 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    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]