C1119: Pure virtual function qualifier should be (=0)

[ERROR]

Description

The '=0' qualifier is used to declare a pure virtual function. Following example shows an ill-formed declaration.

Example
  class A{     // class

  
   public:

  
    virtual void f(void)=2; // ill-formed pure virtual

  
                            // function declaration.

  
  };

  
Tips

Correct the source.