C1437: Member address expected

[ERROR]

Description

A member address is expected to initialize the pointer to member. 0 value can also be provide to set the pointer to member to NULL.

Example
  class A{

  
  public:

  
    int a;

  
    void fct(void){}

  
  };

  
  void main(void){

  
    int A::*pmi = NULL;

  
    ...

  
  }

  
Tips

Use a member address

  class A{

  
  public:

  
    int a;

  
    void fct(void){}

  
  };

  
  void main(void){

  
    int A::*pmi = &A::a;

  
    void (A::*pmf)() = &A::fct;

  
    ...

  
  }

  

Use 0 value to set the pointer to member to NULL

  class A{

  
  public:

  
    int a;

  
    void fct(void){}

  
  };

  
  void main(void){

  
    int A::*pmi = 0;

  
    void (A::*pmf)() = 0;

  
    ...

  
  }