From be668f3284e9de03309cad41eb009578d2331bf6 Mon Sep 17 00:00:00 2001 From: MihailJP Date: Sat, 7 Jul 2018 22:04:51 +0900 Subject: [PATCH] Undef macro `max` The macro conflicts with the function template `std::max()` --- cmdline.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmdline.h b/cmdline.h index de9eaf7..d590998 100644 --- a/cmdline.h +++ b/cmdline.h @@ -39,6 +39,10 @@ #include #include +#ifdef max +#undef max +#endif + namespace cmdline{ namespace detail{