aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/html.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/html.cc b/src/html.cc
index 5e1f6ba7..944977b2 100644
--- a/src/html.cc
+++ b/src/html.cc
@@ -3568,8 +3568,11 @@ static const TagInfo Tags[] = {
};
#define NTAGS (sizeof(Tags)/sizeof(Tags[0]))
+/* Only available in C++11 and up */
+#if __cpp_static_assert
static_assert(NTAGS == HTML_NTAGS,
"Mismatch between number of tags in Tags and HTML_NTAGS");
+#endif
/*
* Compares tag from buffer ('/' or '>' or space-ended string) [p1]