|
Re: Template methods and non-classtype template parameters [message #1851906 is a reply to message #1851818] |
Thu, 21 April 2022 13:55 |
|
Dear Marcin,
operations with template parameters are currently only supported by the C++ generator, if the class itself has a template signature. Feel free to post a bug, if you think that it should also support operation template signatures.
Concerning your 2nd question: you can add a template parameter to the signature of a class (not a classifier template parameter) and then add an owned parameter to it. For instance, choose "K" of type LiteralInteger.
I did a test with a class that has a classifier template parameter with a DataType T and a LiteralInteger K. In this case, the C++ generator produces
template<class T, int K>
class TPClass {
...
}
...
template<class T, int K>
void TPClass<T, K>::tpOperation() { ... }
|
|
|
Powered by
FUDForum. Page generated in 0.03453 seconds