aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/test/script/regex.test.cxx
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2020-05-22 14:10:08 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2020-05-22 14:10:08 +0200
commit9cb494bcc3d6b9baab57158d833f59dccab693b8 (patch)
tree76ac8461e22996fbc7ed3e25ac955561e61cf0bd /libbuild2/test/script/regex.test.cxx
parent55834699a59cd8caf39f64df5cb4565ae95b9441 (diff)
Get rid of now deprecated std::is_pod usage
Diffstat (limited to 'libbuild2/test/script/regex.test.cxx')
-rw-r--r--libbuild2/test/script/regex.test.cxx6
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