mfontanini / libtins

High-level, multiplatform C++ network packet sniffing and crafting library.
http://libtins.github.io/
BSD 2-Clause "Simplified" License
1.91k stars 375 forks source link

Resolves C2696 error while using VS 2017 and up #362

Open alimoezzi opened 5 years ago

alimoezzi commented 5 years ago

This is for issue #360

mfontanini commented 4 years ago

PDU isn't a Packet, this isn't a safe cast. This should be checking the VS version instead. Some older version didn't have enough C++11 support to handle the template types used to do this PDU/Packet dispatching.