Summary: | class wizard: inheritance from template class creates wrong filename suggestion | ||
---|---|---|---|
Product: | [Applications] kdevelop | Reporter: | Daniel Franke <franke.daniel> |
Component: | Language Support: CPP (old) | Assignee: | KDevelop Developers <kdevelop-devel> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | 3.0.0a5 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Solaris | ||
Latest Commit: | Version Fixed In: |
Description
Daniel Franke
2003-07-24 16:43:06 UTC
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>? Subject: interface for creating template classes > http://bugs.kde.org/show_bug.cgi?id=61624 > ------- Additional Comments From cloudtemple@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 Subject: kdevelop/parts/cppsupport CVS commit by dymo: Suggest correct base class name includes even if template class was specified. Also allow template <class T> MyClass form to be specified in the class name input field. So new class wizard should now correctly define template classes and derive from template classes (I hope). CCMAIL: 61624-done@bugs.kde.org M +154 -28 cppnewclassdlg.cpp 1.42 M +32 -18 cppnewclassdlg.h 1.14 M +33 -35 cppnewclassdlgbase.ui 1.25 M +1 -0 newclass_templates/cpp_header 1.2 |