Ticket #97 (closed enhancement: fixed)
COBIA_SmartPointer::outputArgument can be more efficient
Reported by: | jasper | Owned by: | jasper |
---|---|---|---|
Priority: | minor | Milestone: | Maintenance of Phase II |
Component: | Client Header Files | Version: | 1.2.0.8 |
Keywords: | Cc: |
Description
COBIA_SmartPointer::outputArgument is implemented by means of an addReference. It can instead be implemented as a detach operation (saves an addReference and a release call).
Change History
comment:3 Changed 3 years ago by jasper
I prefer to do this after release and have some more internal use to make sure that everything works as intended. This change applies to the client header files.
comment:4 Changed 2 years ago by jasper
Callers should be aware that after outputArgument() in its new implementation, the smart pointer no longer holds a reference to the object, and can no longer be used. Hence outputArgument() should be the last reference to the object's smart pointer.
comment:5 Changed 2 years ago by michelpons
Is there a new implementation compared to its implementation in version 1.2.0.8? I don't see any commit mentioned with modifications.