Skip to content

Commit

Permalink
Fix build on old compilers when FASTDDS_STATISTICS is define (#2929)
Browse files Browse the repository at this point in the history
Signed-off-by: wangtong <wangtong11@xiaomi.com>

Signed-off-by: wangtong <wangtong11@xiaomi.com>
Co-authored-by: wangtong <wangtong11@xiaomi.com>
  • Loading branch information
tongtongdi and wangtong authored Oct 11, 2022
1 parent 1f1ecac commit a0b274a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/cpp/rtps/flowcontrol/FlowControllerFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,11 @@ void FlowControllerFactory::init(
FlowControllerFifoSchedule>(participant_, nullptr))));

#ifdef FASTDDS_STATISTICS
flow_controllers_.insert({async_statistics_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_statistics_flow_controller_name,
std::unique_ptr<FlowController>(
new FlowControllerImpl<FlowControllerAsyncPublishMode,
FlowControllerFifoSchedule>(participant_, nullptr))));
#endif // ifndef FASTDDS_STATISTICS
}

Expand Down

0 comments on commit a0b274a

Please sign in to comment.