Skip to content

Commit

Permalink
add extra document comment
Browse files Browse the repository at this point in the history
Signed-off-by: Chen Lihui <[email protected]>
  • Loading branch information
Chen Lihui committed Sep 27, 2022
1 parent 57ef608 commit 02e1a8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion include/class_loader/class_loader_core.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,10 @@ class MetaObjectGraveyardVector : public MetaObjectVector
{
// Make sure not to access the pointer value in the static variable of `getMetaObjectGraveyard()
// when destroying `meta_object` in the unique_ptr deleter. Because the static variable in
// `getMetaObjectGraveyard()` could be finalized before the static variable
// `getMetaObjectGraveyard()` can be destructed before the static variable
// `g_register_plugin_ ## UniqueID` in some circumstances.
// NOTE of the vector dtor in the STL: if the elements themselves are pointers, the pointed-to
// memory is not touched in any way. Managing the pointer is the user's responsibility.
clear();
}
};
Expand Down

0 comments on commit 02e1a8a

Please sign in to comment.