diff --git a/CMakeLists.txt b/CMakeLists.txt index c9d73e8..7ddffe1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,6 +16,7 @@ IF(MSVC) # Disable VC secure checks, since these are not really issues. ADD_DEFINITIONS("-D_CRT_SECURE_NO_WARNINGS=1") ADD_DEFINITIONS("-D_SCL_SECURE_NO_WARNINGS=1") + ADD_DEFINITIONS("-DNOGDI=1") ELSE() SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") ENDIF() diff --git a/include/tins/dhcp.h b/include/tins/dhcp.h index 4d5c897..55d0ad6 100644 --- a/include/tins/dhcp.h +++ b/include/tins/dhcp.h @@ -503,7 +503,7 @@ private: void write_serialization(uint8_t* buffer, uint32_t total_sz, const PDU* parent); - template + template T search_and_convert(OptionTypes opt) const { const option* option = search_option(opt); if (!option) { diff --git a/include/tins/dhcpv6.h b/include/tins/dhcpv6.h index 7633292..9595d23 100644 --- a/include/tins/dhcpv6.h +++ b/include/tins/dhcpv6.h @@ -887,7 +887,7 @@ private: options_type::const_iterator search_option_iterator(OptionTypes type) const; options_type::iterator search_option_iterator(OptionTypes type); - template