mirror of
https://github.com/ceph/ceph
synced 2025-02-24 11:37:37 +00:00
Merge pull request #19986 from tchaikov/wip-denc-size-t-featured
denc: should check element's type not 'size_t' Reviewed-by: Adam Emerson <aemerson@redhat.com>
This commit is contained in:
commit
f9e02d51d7
@ -1134,7 +1134,7 @@ public:
|
||||
static std::enable_if_t<denc_traits<U>::featured>
|
||||
bound_encode(const container& s, size_t& p, uint64_t f) {
|
||||
ceph::for_each(s, [&p, f] (const auto& e) {
|
||||
if constexpr (denc_traits<std::decay_t<decltype(p)>>::featured) {
|
||||
if constexpr (denc_traits<std::decay_t<decltype(e)>>::featured) {
|
||||
denc(e, p, f);
|
||||
} else {
|
||||
denc(e, p);
|
||||
@ -1153,7 +1153,7 @@ public:
|
||||
static std::enable_if_t<denc_traits<U>::featured>
|
||||
encode(const container& s, buffer::list::contiguous_appender& p, uint64_t f) {
|
||||
ceph::for_each(s, [&p, f] (const auto& e) {
|
||||
if constexpr (denc_traits<std::decay_t<decltype(p)>>::featured) {
|
||||
if constexpr (denc_traits<std::decay_t<decltype(e)>>::featured) {
|
||||
denc(e, p, f);
|
||||
} else {
|
||||
denc(e, p);
|
||||
|
Loading…
Reference in New Issue
Block a user