diff --git a/pluginlib/include/pluginlib/class_loader_imp.hpp b/pluginlib/include/pluginlib/class_loader_imp.hpp index d45b5914..72dc59bf 100644 --- a/pluginlib/include/pluginlib/class_loader_imp.hpp +++ b/pluginlib/include/pluginlib/class_loader_imp.hpp @@ -81,7 +81,7 @@ ClassLoader::ClassLoader( /***************************************************************************/ { ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Creating ClassLoader, base = %s, address = %p", - base_class.c_str(), this); + base_class.c_str(), static_cast(this)); if (ros::package::getPath(package_).empty()) { throw pluginlib::ClassLoaderException("Unable to find package: " + package_); } @@ -92,7 +92,7 @@ ClassLoader::ClassLoader( classes_available_ = determineAvailableClasses(plugin_xml_paths_); ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Finished constructring ClassLoader, base = %s, address = %p", - base_class.c_str(), this); + base_class.c_str(), static_cast(this)); } template @@ -100,7 +100,7 @@ ClassLoader::~ClassLoader() /***************************************************************************/ { ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Destroying ClassLoader, base = %s, address = %p", - getBaseClassType().c_str(), this); + getBaseClassType().c_str(), static_cast(this)); } @@ -123,7 +123,7 @@ T * ClassLoader::createClassInstance(const std::string & lookup_name, bool au ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Attempting to create instance through low-level MultiLibraryClassLoader..."); T * obj = lowlevel_class_loader_.createUnmanagedInstance(getClassType(lookup_name)); - ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Instance created with object pointer = %p", obj); + ROS_DEBUG_NAMED("pluginlib.ClassLoader", "Instance created with object pointer = %p", static_cast(obj)); return obj; } catch (const class_loader::CreateClassException & ex) {