dlr-gtlab / gtlab-core

GTlab Core Framework
https://www.gtlab.de
Other
7 stars 2 forks source link

Add method GtObject::clone_unique #335

Open rainman110 opened 1 year ago

rainman110 commented 1 year ago

In GitLab by @rainman110 on Nov 14, 2022, 13:34

The reason is identical to #334, the use of GtObject::clone might be used unsafe.

It creates memory and could therefore better return unique_ptrs.

We should therefore create a new methon GtObject::clone_unique and deprecate the old one.

rainman110 commented 1 year ago

In GitLab by @rainman110 on Nov 14, 2022, 13:35

marked this issue as related to #334