[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-kdoc
Subject:    Re: Inheriting from templates
From:       Sirtaj Singh Kang <ssk () physics ! unimelb ! edu ! au>
Date:       1999-06-30 9:11:09
[Download RAW message or body]


Hi Marcin, thank you for the report, I am not able to spend extended
periods at the computer right now due to extended ill health. I will fix
this when I can resume work on kdoc.

On Wed, 9 Jun 1999, Marcin Kasperski wrote:

> I found that kdoc does not correctly show inheritance from templates -
> when we have
> 
> template<class X> class Base { ...}
> 
> and
> 
> template<class X> class Derived : public Base<X> { ... }
> 
> the inheritance is not correctly shown.
> 
> 
> Here is the small patch: in the kdocAstUtil.pm, on the very beginning of
> the subroutine findRef I added regexp to translate Base<X> into Base:
> 
> sub findRef
> {
> 	my( $root, $name, $r ) = @_;
> 
>         # MK: remove template params from $name
>         $name =~ s/<.*$//;
> 
> 
> 
> -- Marcin Kasperski     Marcin.Kasperski<at>softax.com.pl
> --                      marckasp<at>friko6.onet.pl
> -- Moje poglądy są moimi poglądami, nikogo poza mną nie reprezentują.
> -- (My opinions are just my opinions.)
> 

-Taj.

Sirtaj S. Kang       taj@kde.org         ssk@physics.unimelb.edu.au
Univ of Melbourne	
			"I'm a commercial operating system."
				-Doug Michels (CEO SCO)

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic