Fix Clang -Wmismatched-tags warning on tuple_size

This commit is contained in:
abitmore 2020-06-14 21:53:47 +00:00
parent c00824a137
commit 88a3b58651

View file

@ -74,6 +74,14 @@ namespace fc {
} }
namespace std { namespace std {
#if defined(__clang__)
// Fix: https://github.com/bitshares/bitshares-core/issues/2197
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wmismatched-tags"
#endif
template< typename T, size_t N > template< typename T, size_t N >
class tuple_size< fc::zero_initialized_array< T, N > > : public tuple_size< array< T, N > > {}; class tuple_size< fc::zero_initialized_array< T, N > > : public tuple_size< array< T, N > > {};
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
} }