This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Umbrello] How to return a template parameter?

Tags: None
(comma "," separated)
User avatar
Barock
Registered Member
Posts
1
Karma
0
I create a class and add a template parameter "T" to this class. Now I add a method to this class named "operation" and return the template parameter "T", which is selectable.
The result should look like this.
Code: Select all
                 |---|
|----------------| T |
|    BaseClass   |---|
|------------------|
|------------------|
| + operation(): T |
|------------------|


But it looks like the method returns void.
Code: Select all
              |---|
|-------------| T |
|   BaseClass |---|
|---------------|
|---------------|
| + operation() |
|---------------|


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell