It is MFC VC++ Visual Studio 2019 Community Update 16.11.2 under Win 10
My peoject is CMFCPROPERTY SHEET app.
For each property page Visual studio entered the constructor:
class CPgTraining : public CMFCPropertyPage
{
DECLARE_DYNAMIC(CPgTraining)
public:
CPgTraining::CPgTraining(): CMFCPropertyPage(CPgTraining::IDD)
{
m_psp.dwFlags &= ~PSP_HASHELP;
}
..................................................
All is compiled just fine under ISO C++17.
But under ISO C++20 I am getting error:
1>PgNetData.cpp
1>D:\VS2019\StorageTmp\ANNet\ANNet\PgTraining.h(19,15): error C3254: 'CPgTraining': class contains explicit override '{ctor}' but does not derive from an interface that contains the function declaration
1>D:\VS2019\StorageTmp\ANNet\ANNet\PgTraining.h(19,28): error C3244: 'CPgTraining::CPgTraining(void)': this method was introduced by '<Unknown>' not by 'CMFCPropertyPage'
1>For every CMFCPropertyPage in the roject.
Removing initialization for base class is leading to exception.
How to correct it?