replace std::shared_ptr to boost::shared_ptr

This commit is contained in:
2025-12-04 14:32:22 +07:00
parent f37bccd02f
commit af43332b28
13 changed files with 27 additions and 26 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)