Skip to content

Commit f4b9592

Browse files
committed
C++11 compat
1 parent 5eeb7d8 commit f4b9592

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CMQMaster.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ class CMQMaster {
264264
);
265265
}
266266
int workers_running() {
267-
return std::count_if(peers.begin(), peers.end(), [](const auto &w) {
267+
return std::count_if(peers.begin(), peers.end(), [](const std::pair<std::string, worker_t> &w) { // 'const auto &w' is C++14
268268
return w.second.status == wlife_t::active; });
269269
}
270270
int workers_total() {

0 commit comments

Comments
 (0)