boostorg / hana

Your standard library for metaprogramming
http://boostorg.github.io/hana
Boost Software License 1.0
1.66k stars 217 forks source link

Cast to void on discarded LHS of comma operator #503

Closed ecatmur closed 1 year ago

ecatmur commented 2 years ago

to avoid warnings in clang 14:

In file included from test/headers/boost/hana/any.cpp:1:
In file included from include/boost/hana/any.hpp:15:
In file included from include/boost/hana/any_of.hpp:16:
In file included from include/boost/hana/at.hpp:16:
In file included from include/boost/hana/concept/iterable.hpp:20:
In file included from include/boost/hana/drop_front.hpp:20:
In file included from include/boost/hana/integral_constant.hpp:13:
In file included from include/boost/hana/bool.hpp:17:
In file included from include/boost/hana/core/to.hpp:21:
include/boost/hana/core/make.hpp:35:28: error: left operand of comma operator has no effect [-Werror,-Wunused-value]
            static_assert((sizeof...(X), false),
                           ^~~~~~~~~~~~
ldionne commented 2 years ago

Thanks! Same as the other PR -- can you please rebase onto develop and re-push?