[Bug 61624] class wizard: inheritance from template class creates wrong filename suggestion

Daniel Franke daniel.franke at imbs.uni-luebeck.de
Fri Jul 25 00:59:03 UTC 2003


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
     
http://bugs.kde.org/show_bug.cgi?id=61624     




------- Additional Comments From daniel.franke at imbs.uni-luebeck.de  2003-07-25 00:58 -------
Subject: interface for creating template classes

> http://bugs.kde.org/show_bug.cgi?id=61624     

> ------- Additional Comments From cloudtemple at mksat.net  
> 2003-07-25 00:01 -------
> Ok, will be fixed, but by the way, can you suggest a good 
> interface for creating 
> template classes. Is it sufficient to allow  template <class T>
> MyClass? Or may be simply MyClass <T>?

I'm not sure if  understand your question correctly ?!
The current situation: 

Project->New Class
	Name:	template <class T> MyClass
	File Names: template <class T>myclass.h   (Header) 
			template <class T>myclass.cpp (Implementation)

created code:
-----------------------------------
class template<class T>MyClass {
public:
	template<class T>MyClass();
	[...]
};
-----------------------------------


As user I would expect, when "naming" my class as
	"template <class T> MyClass"
to get a well formed template class definition:
-----------------------------------
template<class T> class MyClass {
public:
	MyClass();
	[...]
};
-----------------------------------


Did this help you? 

	Daniel




More information about the KDevelop-devel mailing list