You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 4b1d235
Browse filesBrowse the repository at this point in the historyBrowse files
using const_reverse_iterator = ::math::wide_integer::detail::iterator_detail::reverse_iterator<const_iterator>;
694
690
#endif
695
691
696
-
static_assert((std::is_standard_layout<value_type>::value && std::is_trivial<value_type>::value), "Error: the value_type of dynamic_array must be POD");
692
+
#if(__cplusplus > 202302L)
693
+
static_assert(std::is_trivially_default_constructible_v<value_type> && std::is_trivially_copyable_v<value_type>, "Error: the value_type of dynamic_array must be POD");
694
+
#else
695
+
static_assert(std::is_trivial_v<value_type> && std::is_standard_layout_v<value_type>, "Error: the value_type of dynamic_array must be POD");
Copy file name to clipboardExpand all lines: ref_app/src/util/utility/util_dynamic_array.h
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,7 +45,11 @@
45
45
using reverse_iterator = std::reverse_iterator<iterator>;
46
46
using const_reverse_iterator = std::reverse_iterator<const_iterator>;
47
47
48
-
static_assert((std::is_standard_layout<value_type>::value && std::is_trivial<value_type>::value), "Error: the value_type of dynamic_array must be POD");
48
+
#if(__cplusplus > 202302L)
49
+
static_assert(std::is_trivially_default_constructible_v<value_type> && std::is_trivially_copyable_v<value_type>, "Error: the value_type of dynamic_array must be POD");
50
+
#else
51
+
static_assert(std::is_trivial_v<value_type> && std::is_standard_layout_v<value_type>, "Error: the value_type of dynamic_array must be POD");
0 commit comments