replace std::shared_ptr to boost::shared_ptr
This commit is contained in:
@@ -36,8 +36,8 @@ void CriticalLayer::updateCosts(costmap_2d::Costmap2D& master_grid, int min_i, i
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_critical_plugin() {
|
||||
return std::make_shared<CriticalLayer>();
|
||||
static boost::shared_ptr<Layer> create_critical_plugin() {
|
||||
return boost::make_shared<CriticalLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -428,8 +428,8 @@ namespace costmap_2d
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_directional_plugin() {
|
||||
return std::make_shared<DirectionalLayer>();
|
||||
static boost::shared_ptr<Layer> create_directional_plugin() {
|
||||
return boost::make_shared<DirectionalLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -397,8 +397,8 @@ void InflationLayer::handleImpl(const void* data,
|
||||
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_inflation_plugin() {
|
||||
return std::make_shared<InflationLayer>();
|
||||
static boost::shared_ptr<Layer> create_inflation_plugin() {
|
||||
return boost::make_shared<InflationLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -555,8 +555,8 @@ void ObstacleLayer::reset()
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_obstacle_plugin() {
|
||||
return std::make_shared<ObstacleLayer>();
|
||||
static boost::shared_ptr<Layer> create_obstacle_plugin() {
|
||||
return boost::make_shared<ObstacleLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -25,8 +25,8 @@ unsigned char PreferredLayer::interpretValue(unsigned char value)
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_preferred_plugin() {
|
||||
return std::make_shared<PreferredLayer>();
|
||||
static boost::shared_ptr<Layer> create_preferred_plugin() {
|
||||
return boost::make_shared<PreferredLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -361,8 +361,8 @@ void StaticLayer::updateCosts(costmap_2d::Costmap2D& master_grid, int min_i, int
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_static_plugin() {
|
||||
return std::make_shared<StaticLayer>();
|
||||
static boost::shared_ptr<Layer> create_static_plugin() {
|
||||
return boost::make_shared<StaticLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -23,8 +23,8 @@ unsigned char UnPreferredLayer::interpretValue(unsigned char value)
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_unpreferred_plugin() {
|
||||
return std::make_shared<UnPreferredLayer>();
|
||||
static boost::shared_ptr<Layer> create_unpreferred_plugin() {
|
||||
return boost::make_shared<UnPreferredLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
@@ -450,8 +450,8 @@ void VoxelLayer::updateOrigin(double new_origin_x, double new_origin_y)
|
||||
}
|
||||
|
||||
// Export factory function
|
||||
static std::shared_ptr<Layer> create_voxel_plugin() {
|
||||
return std::make_shared<VoxelLayer>();
|
||||
static boost::shared_ptr<Layer> create_voxel_plugin() {
|
||||
return boost::make_shared<VoxelLayer>();
|
||||
}
|
||||
|
||||
// Alias cho Boost.DLL (nếu muốn dùng boost::dll::import_alias)
|
||||
|
||||
Reference in New Issue
Block a user