Makes it difficult to translate C/C++ code.
Can you provide an example of the C/C++ code that you are trying to translate ?... maybe there is another way.
Go here
https://learn.microsoft.com/en-us/cpp/cpp/templates-cpp?view=msvc-170scroll down to "Non Type Parameters"
That is what I am dealing with.
If it were just a couple here and there I would hard code it but these templates are being used through out the app with lots of different sizes.
There is more than one array per unit for each generic (template) that references this size.
This is a large CAD program and I already tried using dynamic methods in the translation which seem to be working but I noticed a slowdown and the static methods of doing this seems to work much faster. There is lots of code doing complete structure copies from one to the other, etc.
I am not even sure at the completion of this, if the compiler will handle all of the translations without a memory elapse!