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.
This commit is contained in:
Ray Kim 2017-06-27 02:59:58 +09:00 committed by GitHub
parent 1ed7702790
commit 4d2921e31b

View File

@ -195,6 +195,8 @@
# endif
#endif
// std::clamp's feature test macro is defined inside <algorithm>
#include <algorithm>
#if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603)
# ifndef _enable_std_clamp
# define _enable_std_clamp