September 30, 2006 templated friend problem? | ||||
|---|---|---|---|---|
| ||||
This code doesn't compile with DMC++ (8.49):
namespace Private
{
template<class T>
class Helper;
}
class Test
{
template<class T>
friend class Private::Helper;
};
Seems like the namespace Private is mistaken for a class name
friend class Private::Helper;
^
quick_test.cpp(10) : Error: ';' expected following declaration of
class template 'Private'
Bo Persson
| ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply