title: How to resolve error 'overriding virtual function has less restrictive exception specification than base class virtual member function'
body: <p>I know this 'If a virtual function has an exception-specification, all declarations, including the definition, of any function that overrides that virtual function in any derived class shall only allow exceptions that are allowed by the exception-specification of the base class virtual function.'
  But the problem is I am not writing the code, it is legacy on which I am working.</p>
  <p>Everywhere it is explained that what it is but nowhere it is mentioned how to resolve the issue.</p>
  <p>This is the virtual function in the base.h file:</p>
  <pre><code>virtual LONG A() throw()
      {
          return Model::Decrement(&amp;m_nLockCnt);
      }
  </code></pre>
  <p>and I am getting an error in app.h file :</p>
  <pre><code>class CServerAppModule : public CAppModule
  {
      LONG A()
          {
              LONG lR = CModule::A();
              if(lR == 0)
              {
                  //
              }
              return lR;
          }
  };
  </code></pre>