Reply to topic

[Umbrello] How to return a template parameter?

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() |
|---------------|

Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], Google [Bot], jackjo, kevjon