[Doxygen-develop] templates and namespaces
Brought to you by:
dimitri
From: Chuck P. <cp....@tw...> - 2007-08-21 13:30:03
|
Consider namespace xyzzy { class A { public: int payloadl; }; template <class T> class B : public T { }; class C : public B<A> { }; } The above gives very differnt, and IMO better, result is the outside namespace is commented out. The first major difference I found is difference is driven by the while (scopeOffset > 0) towards the bottom of findClassRelation. I'm just not positive what to do about it. It pretty obvious that the loop is required to find things not found in the current scope. I think I don't want to add the additonal relation if I find its only related to a relation I've already added. While namespaces may have had other problems previosuly this particular problem showed up between doyxgen-1.4.6.2 and 1.4.6.4. I also noticed that at times there are class names generated of the form xyzzy::xyzzy::A. This might just be a by product of the first observed difference. This is likelky what is behind the problem that Brendon Costa asked about a couple of months ago. Any comments/guidance would be appreciated. Chuck |