Salome HOME
#18963 Change throw() -> noexcept
[modules/yacs.git] / src / engine / ForEachLoop.cxx
index d3bc13f27027ef5d113869412978ab9d77615138..f8c06713302785bde4a0694bcdaeb329175f07fe 100644 (file)
@@ -28,6 +28,7 @@
 #include <iomanip>
 #include <sstream>
 #include <algorithm>    // std::replace_if
+#include <functional>   // std::bind
 
 //#define _DEVDEBUG_
 #include "YacsTrace.hxx"
@@ -909,7 +910,7 @@ YACS::Event ForEachLoopGen::updateStateOnFailedEventFrom(Node *node, const Execu
 
 void ForEachLoopGen::InterceptorizeNameOfPort(std::string& portName)
 {
-  std::replace_if(portName.begin(), portName.end(), std::bind1st(std::equal_to<char>(), '.'), '_');
+  std::replace_if(portName.begin(), portName.end(), std::bind(std::equal_to<char>(), '.',std::placeholders::_1), '_');
   portName += INTERCEPTOR_STR;
 }