We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
std::bind
MDNSResponder
1 parent d2461a1 commit 0e4fd05Copy full SHA for 0e4fd05
libraries/LEAmDNS/src/LEAmDNS_Helpers.cpp
@@ -161,7 +161,7 @@ bool MDNSResponder::_allocUDPContext(void) {
161
162
if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT)) {
163
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
164
- m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
+ m_pUDPContext->onRx([this] { this->_callProcess(); });
165
} else {
166
return false;
167
}
0 commit comments