【小记】解决引用"windows.h"引发std::numeric_limits<T>::max()编译出现C2589问题

直接在出问题的源码文件头部加入:

#include <windows.h>

#undef max
#undef min

 

posted @ 2023-03-11 17:03  芯片烤电池  阅读(27)  评论(0编辑  收藏  举报