class_loader icon indicating copy to clipboard operation
class_loader copied to clipboard

Unnecessary conditional judgment in isLibraryLoaded ?

Open daohu527 opened this issue 5 years ago • 1 comments

I wonder num_meta_objs_for_lib_bound_to_loader will always less than num_meta_objs_for_lib, because num_meta_objs_for_lib_bound_to_loader is look forward in allMetaObjectsForLibrary(library_path) and

num_meta_objs_for_lib is equal with allMetaObjectsForLibrary(library_path).size()

https://github.com/ros/class_loader/blob/8864be372a83921f15906ae80752be9d6a300b81/src/class_loader_core.cpp#L304-L312

daohu527 avatar Oct 26 '20 14:10 daohu527

It'd appear like it, yes. @mjcarroll am I missing anything? Do you recall what was the intent?

hidmic avatar Oct 30 '20 21:10 hidmic