Skip to content

Commit

Permalink
[occ] Fix Mac build
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed May 13, 2020
1 parent 5d6c212 commit abebd07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions occ/plugin/OccFMQCommon.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
if (boost::starts_with(key, "chans.")) {
key.erase(0, 6);
std::vector<std::string> split;
boost::split(split, key, std::bind1st(std::equal_to<char>(), '.'));
boost::split(split, key, std::bind(std::equal_to<>(), '.', std::placeholders::_1));
if (std::find(intKeys.begin(), intKeys.end(), split.back()) != intKeys.end()) {
auto intValue = std::stoi(value);
m_pluginServices->SetProperty(key, intValue);
Expand Down Expand Up @@ -143,7 +143,7 @@ std::tuple<OccLite::nopb::TransitionResponse, ::grpc::Status> doTransition(fair:
if (boost::starts_with(key, "chans.")) {
key.erase(0, 6);
std::vector<std::string> split;
boost::split(split, key, std::bind1st(std::equal_to<char>(), '.'));
boost::split(split, key, std::bind(std::equal_to<>(), '.', std::placeholders::_1));
if (split.size() != 3)
continue;
auto name = split[0];
Expand Down

0 comments on commit abebd07

Please sign in to comment.