From 9bc9ffa16fe7fd2f97062d3faccad00cf67ef9ca Mon Sep 17 00:00:00 2001 From: realsarm <37932944+realsarm@users.noreply.github.com> Date: Mon, 29 Jul 2019 14:04:07 +0430 Subject: [PATCH] Resolves C2696 error while using VS 2019 --- include/tins/sniffer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/tins/sniffer.h b/include/tins/sniffer.h index a8b28911..c759c597 100644 --- a/include/tins/sniffer.h +++ b/include/tins/sniffer.h @@ -678,7 +678,7 @@ void Tins::BaseSniffer::sniff_loop(Functor function, uint32_t max_packets) { return; } #else - if (!function(*it->pdu())) { + if (!function((Tins::Packet &)*it->pdu())) { return; } #endif