I want to use #define NOMINMAXVisual Studio C ++ in my project using MFC so that I can use std::minand std::max. However, when I put this line in my stdafx.h, I get the following compilation error:
c: \ program files (x86) \ windows kits \ 8.0 \ include \ um \ GdiplusTypes.h (475): error C3861: 'min': identifier not found
I do not use GDI + intentionally, this is what MFC should do. Is there any way to fix the problem by removing GDI + or adjusting it for compilation?
source
share