Skip to content

Commit 02e1a8a

Browse files
author
Chen Lihui
committed
add extra document comment
Signed-off-by: Chen Lihui <lihui.chen@sony.com>
1 parent 57ef608 commit 02e1a8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/class_loader/class_loader_core.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,10 @@ class MetaObjectGraveyardVector : public MetaObjectVector
8989
{
9090
// Make sure not to access the pointer value in the static variable of `getMetaObjectGraveyard()
9191
// when destroying `meta_object` in the unique_ptr deleter. Because the static variable in
92-
// `getMetaObjectGraveyard()` could be finalized before the static variable
92+
// `getMetaObjectGraveyard()` can be destructed before the static variable
9393
// `g_register_plugin_ ## UniqueID` in some circumstances.
94+
// NOTE of the vector dtor in the STL: if the elements themselves are pointers, the pointed-to
95+
// memory is not touched in any way. Managing the pointer is the user's responsibility.
9496
clear();
9597
}
9698
};

0 commit comments

Comments
 (0)