mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Update CI ubuntu version to 2204
Minor fix replace deprecated is_pod
This commit is contained in:
committed by
Nikola Matic
parent
1da82045c4
commit
7063fabf1f
@@ -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,
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user