Update CI ubuntu version to 2204

Minor fix

replace deprecated is_pod
This commit is contained in:
Rodrigo Q. Saramago
2023-01-12 10:37:29 +01:00
committed by Nikola Matic
parent 1da82045c4
commit 7063fabf1f
4 changed files with 88 additions and 88 deletions
+1 -1
View File
@@ -267,7 +267,7 @@ template<
typename MapType,
typename KeyType,
typename ValueType = std::decay_t<decltype(std::declval<MapType>().find(std::declval<KeyType>())->second)> const&,
typename AllowCopyType = std::conditional_t<std::is_pod_v<ValueType> || std::is_pointer_v<ValueType>, detail::allow_copy, void*>
typename AllowCopyType = std::conditional_t<(std::is_trivial_v<ValueType> && std::is_standard_layout_v<ValueType>) || std::is_pointer_v<ValueType>, detail::allow_copy, void*>
>
decltype(auto) valueOrDefault(
MapType&& _map,
+1 -1
View File
@@ -28,7 +28,7 @@ public:
using iterator = T*;
using const_iterator = T const*;
static_assert(std::is_pod<value_type>::value, "vector_ref can only be used with PODs due to its low-level treatment of data.");
static_assert(std::is_standard_layout_v<value_type> && std::is_trivial_v<value_type>, "vector_ref can only be used with PODs due to its low-level treatment of data.");
vector_ref(): m_data(nullptr), m_count(0) {}
/// Creates a new vector_ref to point to @a _count elements starting at @a _data.