Okay this one is a tad confusing for me because I set the environment settings right to compile Maya 2020 Plugins using the 2020Devkit and built the project and right off the bat, it starts to complain:
1>------ Build started: Project: smoothWeights, Configuration: Debug x64 ------
1>smoothWeightsTool.cpp
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): warning C4003: not enough arguments for function-like macro invocation 'min'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): error C2059: syntax error: ')'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(53): error C2334: unexpected token(s) preceding ':'; skipping apparent function body
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(54): warning C4003: not enough arguments for function-like macro invocation 'max'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): error C2143: syntax error: missing ')' before ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): error C2059: syntax error: ')'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(64): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(66): error C2059: syntax error: '}'
1>d:\installed programs\autodesk\maya2020\include\maya\mboundingbox.h(66): error C2143: syntax error: missing ';' before '}'
...
...
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): error C3646: 'begin': unknown override specifier
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): error C2059: syntax error: '('
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(73): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): error C3646: 'end': unknown override specifier
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): error C2059: syntax error: '('
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(74): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mplugarray.h(76): error C3646: 'begin': unknown override specifier
..
..
1>d:\installed programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(87): error C2059: syntax error: '('
1>d:\installed programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(87): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error C3646: 'cend': unknown override specifier
1>d:\installed programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error C2059: syntax error: '('
1>d:\installed programs\autodesk\maya2020\include\maya\mfloatvectorarray.h(88): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): error C2143: syntax error: missing ';' before '<'
1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(37): error C2238: unexpected token(s) preceding ';'
1>d:\installed programs\autodesk\maya2020\include\maya\mpointarray.h(38): error C2143: syntax error: missing ';' before '<'
It's complaining about Autodesk Maya's 2020 header files. What the heck is going on here?