The latest HCL RTist 11 release, version 2020.45, is now available. And there are several improvements and new features in this release:
Member Template Operations
The model compiler now supports member operations with template parameters. Both type and value template parameters are supported. Note that in most cases such operations must be marked as inline so that the implementation gets generated into the header file.
Customer Type Descriptor for Type Aliases
In the previous release we introduced the support for C++ 11 type aliases which is a modern alternative to traditional typedefs. In this release it’s now possible to write a custom type descriptor for a type alias. This means that you now can replace typedefs with type aliases also when a custom type descriptor is required. For type aliases of STL collection types (list, set, map etc) you can use the Type Descriptor Hint property to instruct the model compiler to generate a type descriptor automatically for such types.
Removal of C-style Casts
We have done a complete walkthrough of all code in the TargetRTS and removed all C-style casts, since many modern C++ compilers and static code analyzers report warnings for them. Such casts have either been removed (if they were unnecessary), or replaced with corresponding C++ casts (
reinterpret_cast). The model compiler was also updated in a similar way, to not generate C-style casts anymore.
A benefit with this improvement is that the TargetRTS and generated code now can be compiled without use of the GCC
-fpermissive flag, which helps in finding potential problems in the code.