Skip to content

Commit c5a586a

Browse files
committed
Swap std::is_trivial with non deprecated traits
1 parent e4aa0b3 commit c5a586a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/c4/yml/common.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ struct RYML_EXPORT LineCol
288288
//! construct from offset, line and column
289289
LineCol(size_t o, size_t l, size_t c) : offset(o), line(l), col(c) {}
290290
};
291-
static_assert(std::is_trivial<LineCol>::value, "LineCol not trivial");
291+
static_assert(std::is_trivially_copyable<LineCol>::value && std::is_trivially_default_constructible<LineCol>::value, "LineCol not trivial");
292292
static_assert(std::is_standard_layout<LineCol>::value, "Location not trivial");
293293

294294

0 commit comments

Comments
 (0)