Commit 2e1d7425 authored by MONSEIGNE Thibaut's avatar MONSEIGNE Thibaut

Fix: Coding Rules Example ambiguous reference

- error: reference to ‘placeholders’ is ambiguous
parent 7652b1ea
......@@ -73,7 +73,7 @@ public:
m_stimulusSocket.connect(*resolver.resolve(query), error);
// Tell ASIO to read a stimulus
async_read_until(m_stimulusSocket, m_stimulusStream, "\n", boost::bind(&TCPWriterClient::stimulusHandler, this, placeholders::error));
async_read_until(m_stimulusSocket, m_stimulusStream, "\n", boost::bind(&TCPWriterClient::stimulusHandler, this, boost::asio::placeholders::error));
}
if ((sSignalPort != nullptr) && strcmp(sSignalPort, "0") != 0)
......@@ -88,7 +88,7 @@ public:
// Tell ASIO to read the signal header
async_read(m_signalSocket, buffer(m_signalHeaderBuffer.data(), m_headerSize), transfer_at_least(m_headerSize),
boost::bind(&TCPWriterClient::signalHeaderHandler, this, placeholders::error));
boost::bind(&TCPWriterClient::signalHeaderHandler, this, boost::asio::placeholders::error));
}
}
......@@ -103,7 +103,7 @@ public:
// Tell ASIO to read again
async_read_until(m_stimulusSocket, m_stimulusStream, "\n",
boost::bind(&TCPWriterClient::stimulusHandler, this, placeholders::error));
boost::bind(&TCPWriterClient::stimulusHandler, this, boost::asio::placeholders::error));
}
void signalHeaderHandler(const system::error_code& error)
......@@ -142,7 +142,7 @@ public:
// Tell ASIO to read the actual signal
async_read(m_signalSocket, buffer(m_signalBuffer.data(), m_bufferSize), transfer_at_least(m_bufferSize),
boost::bind(&TCPWriterClient::signalHandler, this, placeholders::error));
boost::bind(&TCPWriterClient::signalHandler, this, boost::asio::placeholders::error));
}
void signalHandler(const system::error_code& error)
......@@ -167,7 +167,7 @@ public:
// Tell ASIO to read more
async_read(m_signalSocket, buffer(m_signalBuffer.data(), m_bufferSize), transfer_at_least(m_bufferSize),
boost::bind(&TCPWriterClient::signalHandler, this, placeholders::error));
boost::bind(&TCPWriterClient::signalHandler, this, boost::asio::placeholders::error));
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment