Merge pull request #202 from bitshares/fix-tuple-size-warning

Fix Clang -Wmismatched-tags warning on tuple_size
This commit is contained in:
Abit 2020-06-17 14:24:28 +02:00 committed by GitHub
commit 6606806f31
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -74,6 +74,14 @@ namespace fc {
}
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 >
class tuple_size< fc::zero_initialized_array< T, N > > : public tuple_size< array< T, N > > {};
#if defined(__clang__)
#pragma clang diagnostic pop
#endif
}