New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build error in include/nana/deploy.hpp redefinition of clamp #220
Comments
Yes, because of new compiler. The detection of std::clamp in #if (!defined(__cpp_lib_clamp)) || (__cpp_lib_clamp < 201603)
# ifndef _enable_std_clamp
# define _enable_std_clamp
# endif
#endif |
Should I open a PR fix for that? |
That's would be great. Thanks in advance. |
Alright I'll work on that |
#222 fixed |
Similar error occurs with VS2017 when compiling with
Wouldn't it be better to define custom 'clamp' in |
Hi, @codicodi I know the restriction that C++ standard describes. Essentially, I am not trying to introduce new customized names into the |
Maybe making a macro switch such as #if C++17
#define nana::clamp std::clamp
#else
#define enable_nana_clamp
#endif Would do the job? |
Thank you for the suggestion, this way is used for adopting nana::file system to std::experimental::filesystem. |
while building with gcc 7 I got this error
is this because I'm using a new compiler?
or compiler flags perhaps?
The text was updated successfully, but these errors were encountered: