'C2059 syntax error: ',' after upgrading to Python 3.9 from Python 2.7

I have a C++ application that runs on Python 2.7, today I decided to upgrade to Python 3.9 but ever since then I've been getting the following error in visual studio when I try to build/compile

Error   C2059   syntax error: ','   PRTerrainLib    C:\User\source\eterLib\Pool.h   109 

whereas line 109 represents static void Delete(T* pkData) { delete pkData; }

nothing has been changed in the source code, the same code used to compile just fine with Python 2.7



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source