chore: import upstream snapshot with attribution
This commit is contained in:
+13
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/sparsehash/internal/hashtable-common.h b/src/sparsehash/internal/hashtable-common.h
|
||||
index bac2b88..59c752c 100644
|
||||
--- a/src/sparsehash/internal/hashtable-common.h
|
||||
+++ b/src/sparsehash/internal/hashtable-common.h
|
||||
@@ -51,7 +51,7 @@ _START_GOOGLE_NAMESPACE_
|
||||
|
||||
template <bool> struct SparsehashCompileAssert { };
|
||||
#define SPARSEHASH_COMPILE_ASSERT(expr, msg) \
|
||||
- __attribute__((unused)) typedef SparsehashCompileAssert<(bool(expr))> msg[bool(expr) ? 1 : -1]
|
||||
+ static_assert(bool(expr), #msg)
|
||||
|
||||
namespace sparsehash_internal {
|
||||
|
||||
Reference in New Issue
Block a user