Skip to content

Commit abebd07

Browse files
committed
[occ] Fix Mac build
1 parent 5d6c212 commit abebd07

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

occ/plugin/OccFMQCommon.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
9494
if (boost::starts_with(key, "chans.")) {
9595
key.erase(0, 6);
9696
std::vector<std::string> split;
97-
boost::split(split, key, std::bind1st(std::equal_to<char>(), '.'));
97+
boost::split(split, key, std::bind(std::equal_to<>(), '.', std::placeholders::_1));
9898
if (std::find(intKeys.begin(), intKeys.end(), split.back()) != intKeys.end()) {
9999
auto intValue = std::stoi(value);
100100
m_pluginServices->SetProperty(key, intValue);
@@ -143,7 +143,7 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
143143
if (boost::starts_with(key, "chans.")) {
144144
key.erase(0, 6);
145145
std::vector<std::string> split;
146-
boost::split(split, key, std::bind1st(std::equal_to<char>(), '.'));
146+
boost::split(split, key, std::bind(std::equal_to<>(), '.', std::placeholders::_1));
147147
if (split.size() != 3)
148148
continue;
149149
auto name = split[0];

0 commit comments

Comments
 (0)