【发布时间】:2018-12-27 11:01:13
【问题描述】:
我使用了以下代码:
auto t = numeric_limits<decltype(m)>::max() - 1;
后来,我需要#include <Windows.h>,它有#define max(a, b)指令,所以我不能使用::max()方法。 在不使用#undef max 的情况下调用::max() 时有没有办法抑制宏扩展?
【问题讨论】:
标签: c++ preprocessor