I am migrating a project from VS 2010 to VS2019. My code is working fine in VS 2010 while I am getting error in VS2019 for the same code.
#undef inline
#define inline __forceinline
..///
..///code
#undef inline
#define inline inline
Error C1189 #error: The C++ Standard Library forbids macroizing the keyword "inline". Enable warning C4005 to find the forbidden define
How can I remove this error.