Version: 3.0.0a5 (using KDE 3.1.2) Installed from: compiled sources Compiler: gcc version 3.2.2 OS: SunOS (sun4u) release 5.8 Project -> New Class Base class 'Add' : template-class<foo, bar> created include filename: 'template-class<foo,bar>.h' (instead of 'template-class.h')
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