Invalid generate source code of c++ class (#2738)
On c++ class code generation the destruction has generate with void as return parameter (and I need to add the ~). I try with or without stereotypes same result.
With <<destroy>> or without <<destroy>>
//.h
namespace Telops
{
class Object
{
private:
void APrivateMethod ();
protected:
void AProtectedMethod (std::string a, [Out]const std::string& b);
public:
Object ();
virtual void ~Object ();
};
}
//.cpp
void Telops::Object::~Object ()
{
}
Created
9 April 2024 19:39:02
Closed
16 April 2024 12:22:29
Requested by
Telops Inc.
State
Solved
Version
14.31.0.0
OperatingSystem
Windows 11
Solved in
14.40
Dusan Rodina - softwareideas.net 10 April 2024 8:24:44
Indeed, the current version of the C++ source code template does not support destructors. Thank you for bringing this to our attention. We plan to include destructor generation in the upcoming release, which is scheduled for next week.