Closed dongkeren closed 2 years ago
Using version 1.7.0, boost/hana/traits.hpp line 73 is causing the error:
constexpr auto is_literal_type = detail::hana_trait{};
My workaround is simply bypass it:
if __cplusplus > 201704L constexpr auto is_literal_type = detail::hana_trait{}; endif
Reference: https://stackoverflow.com/questions/40351816/deprecated-stdis-literal-type-in-c17
The problem is that MSVC doesn't set the value of __cplusplus correctly unless you pass /Zc:__cplusplus: https://godbolt.org/z/c6YKTr8dh
__cplusplus
/Zc:__cplusplus
Using version 1.7.0, boost/hana/traits.hpp line 73 is causing the error:
My workaround is simply bypass it:
Reference: https://stackoverflow.com/questions/40351816/deprecated-stdis-literal-type-in-c17