This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [C++] My unreviewed patches
On Sat, 23 Aug 2003 19:41:06 +0700, Kriang Lerdsuwanakij <lerdsuwa@users.sourceforge.net> wrote:
> The way class_depth and friend_depth count is different from your
> understanding. Every template header for the friend declaration is
> counted in friend_depth.
Ah, yes. But then you don't handle
template <class T> template <class U> template <class V>
friend void A<T>::B<U>::f(V);
which would have friend_depth == 3. Why is that too many template headers?
Similarly, why do you want to reject
template <class T> template <class U>
friend void A<T>::B<U>::f();
?
Jason