changing std::_1 to  std::placeholders::_1 to resolve issue on Mac