diff options
Diffstat (limited to 'libbuild2/test')
-rw-r--r-- | libbuild2/test/script/regex.test.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libbuild2/test/script/regex.test.cxx b/libbuild2/test/script/regex.test.cxx index c46068b..5a93c53 100644 --- a/libbuild2/test/script/regex.test.cxx +++ b/libbuild2/test/script/regex.test.cxx @@ -2,7 +2,7 @@ // license : MIT; see accompanying LICENSE file #include <regex> -#include <type_traits> // is_pod, is_array +#include <type_traits> // is_* #include <libbuild2/test/script/regex.hxx> @@ -23,7 +23,9 @@ main () // Test line_char. // { - static_assert (is_pod<lc>::value && !is_array<lc>::value, + static_assert (is_trivial<lc>::value && + is_standard_layout<lc>::value && + !is_array<lc>::value, "line_char must be char-like"); // Zero-initialed line_char should be the null-char as required by |