Code completion and templates

David Nolden zwabel at googlemail.com
Fri Dec 7 16:54:36 UTC 2007


On Friday 07 December 2007 17:19:16 Vladimir Prus wrote:
> I've just tried KDevelop4 trunk with the following program.
>
>     class A
>     {
>     public:
>     void method_of_a() {}
>     };
>
>     class B
>     {
>     public:
>     void method_of_b() {}
>     };
>
>     A foo(A a) { return a; }
>     template<class T> T foo(T t) { return t; }
>
>     int main(int argc, char **argv)
>     {
>     A a;
>     B b;
>     foo(a);
>     foo(b);
>     }

Template-functions(as opposed to template classes) are one of the last things 
missing in the template support, but I think it'll be implemented some time 
in the near future.

greetings, David




More information about the KDevelop-devel mailing list