我正在将一个项目从 VS 2010 迁移到 VS2019。我的代码在 VS 2010 中运行良好,而在 VS2019 中对于相同的代码却出现错误。
#undef inline
#define inline __forceinline
..///
..///code
#undef inline
#define inline inline
Run Code Online (Sandbox Code Playgroud)
Error C1189 #error: The C++ Standard Library forbids macroizing the keyword "inline". Enable warning C4005 to find the forbidden define
我怎样才能消除这个错误。