Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on old compilers [12546] #2220

Merged
merged 1 commit into from
Sep 27, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions src/cpp/rtps/flowcontrol/FlowControllerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,23 @@ void FlowControllerFactory::init(
// Create default flow controllers.

// PureSyncFlowController -> used by volatile besteffort writers.
flow_controllers_.insert({pure_sync_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerPureSyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))});
flow_controllers_.insert(std::make_pair<std::string, std::unique_ptr<FlowController>>(
pure_sync_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerPureSyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))));
// SyncFlowController -> used by rest of besteffort writers.
flow_controllers_.insert({sync_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerSyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))});
flow_controllers_.insert(std::make_pair<std::string, std::unique_ptr<FlowController>>(
sync_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerSyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))));
// AsyncFlowController
flow_controllers_.insert({async_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerAsyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))});
flow_controllers_.insert(std::make_pair<std::string, std::unique_ptr<FlowController>>(
async_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerAsyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))));

#ifdef FASTDDS_STATISTICS
flow_controllers_.insert({async_statistics_flow_controller_name,
Expand Down