|
|
środa, 6 lipca 2022 o 17:48:12 UTC+2 Ian MacArthur napisał(a):
On Wed, 6 Jul 2022 at 16:41, Mohammed wrote:
>
> Wouldn’t using std::unique_ptr interfere with FLTK’s parent/child ownership system. If a unique_ptr fell out if scope it would call delete on the pointer and this might lead to issues.
>
Hi Mo,
Yes, that's a fair point.
I was kind of assuming the pointer was instantiated in some "global"
scope, but that may not be the case...
It is instantiated in the dialog window object which in turn is instantiated in the object of a main window so it will never fell out of a scope when the program runs.
--
You received this message because you are subscribed to the Google Groups "fltk.general" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkgeneral+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkgeneral/86833a54-29e7-46ae-9241-e68d9ad2d525n%40googlegroups.com.
[ Direct Link to Message ] | |
|
| |