Skip to content

Commit ba04b47

Browse files
committed
Replace boost::bind with lambda in std::partition
1 parent 665db3f commit ba04b47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/web_video_server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ void WebVideoServer::cleanup_inactive_streams()
146146
if (lock) {
147147
auto new_end = std::partition(
148148
image_subscribers_.begin(), image_subscribers_.end(),
149-
!boost::bind(&ImageStreamer::isInactive, _1));
149+
[](const std::shared_ptr<ImageStreamer> & streamer) {return !streamer->isInactive();});
150150
if (verbose_) {
151151
for (auto itr = new_end; itr < image_subscribers_.end(); ++itr) {
152152
RCLCPP_INFO(node_->get_logger(), "Removed Stream: %s", (*itr)->getTopic().c_str());

0 commit comments

Comments
 (0)