Use decltype instead of typedefs for function pointers

This commit is contained in:
Birunthan Mohanathas
2014-02-28 18:35:09 +02:00
parent 27af737a3a
commit 3190fc267f
9 changed files with 55 additions and 73 deletions

View File

@ -24,9 +24,6 @@
#include <Iphlpapi.h>
#include "Measure.h"
typedef NETIO_STATUS (NETIOAPI_API_ * FPGETIFTABLE2)(PMIB_IF_TABLE2* Table);
typedef VOID (NETIOAPI_API_ * FPFREEMIBTABLE)(PVOID Memory);
class MeasureNet : public Measure
{
public:
@ -75,8 +72,8 @@ private:
static BYTE* c_Table;
static UINT c_NumOfTables;
static FPGETIFTABLE2 c_GetIfTable2;
static FPFREEMIBTABLE c_FreeMibTable;
static decltype(GetIfTable2)* c_GetIfTable2;
static decltype(FreeMibTable)* c_FreeMibTable;
};
#endif