25 #ifndef CGU_GERROR_HANDLE_H 26 #define CGU_GERROR_HANDLE_H 54 g_error_free(const_cast<GError*>(obj_p));
This is a generic class for managing the lifetime of objects allocated on freestore.
Definition: shared_handle.h:448
SharedHandle< GError *, GerrorFree > GerrorSharedHandle
A handle comprising a typed instance of the SharedHandle class for managing GError objects...
Definition: gerror_handle.h:76
A deleter functor for use as the second (Dealloc) template parameter of the SharedHandle, SharedLockHandle or ScopedHandle template classes, which calls glib's g_error_free().
Definition: gerror_handle.h:50
This is a generic scoped class for managing the lifetime of objects allocated on freestore.
Definition: shared_handle.h:449
Definition: application.h:44
void operator()(const GError *obj_p) noexcept
Definition: gerror_handle.h:52
ScopedHandle< GError *, GerrorFree > GerrorScopedHandle
A handle comprising a typed instance of the ScopedHandle class for managing GError objects...
Definition: gerror_handle.h:67