From 4d2921e31b4342e7c2edfae2553089468c66b912 Mon Sep 17 00:00:00 2001 From: Ray Kim Date: Tue, 27 Jun 2017 02:59:58 +0900 Subject: [PATCH] Fixed stdc++.hpp build error on gcc 7 included algorithm in c++defines.hpp this fixes std::clamp's feature test which was not working. --- include/nana/c++defines.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/nana/c++defines.hpp b/include/nana/c++defines.hpp index a9381f23..980e98a0 100644 --- a/include/nana/c++defines.hpp +++ b/include/nana/c++defines.hpp @@ -195,6 +195,8 @@ # endif #endif +// std::clamp's feature test macro is defined inside +#include #if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603) # ifndef _enable_std_clamp # define _enable_std_clamp