Skip to content

Commit

Permalink
Rename ambiguous _iter_driver and pair_contained
Browse files Browse the repository at this point in the history
Signed-off-by: Silvio Traversaro <[email protected]>
  • Loading branch information
traversaro committed Jun 19, 2024
1 parent f163e8a commit 6767943
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions include/zenohcxx/api.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -709,8 +709,8 @@ struct AttachmentView : public Copyable<::z_attachment_t> {
AttachmentView(const AttachmentView::IterDriver& _iter_driver)
: Copyable({static_cast<const void*>(&_iter_driver),
[](const void* data, z_attachment_iter_body_t body, void* ctx) -> int8_t {
const IterDriver* _iter_driver = static_cast<const IterDriver*>(data);
return (*_iter_driver)([&body, &ctx](const BytesView& key, const BytesView& value) {
const IterDriver* _iter_driver_ptr = static_cast<const IterDriver*>(data);
return (*_iter_driver_ptr)([&body, &ctx](const BytesView& key, const BytesView& value) {
return body(key, value, ctx);
});
}}) {}
Expand All @@ -722,8 +722,8 @@ struct AttachmentView : public Copyable<::z_attachment_t> {
AttachmentView(const T& pair_container)
: Copyable({static_cast<const void*>(&pair_container),
[](const void* data, z_attachment_iter_body_t body, void* ctx) -> int8_t {
const T* pair_container = static_cast<const T*>(data);
for (const auto& it : *pair_container) {
const T* pair_container_ptr = static_cast<const T*>(data);
for (const auto& it : *pair_container_ptr) {
int8_t ret = body(BytesView(it.first), BytesView(it.second), ctx);
if (ret) {
return ret;
Expand Down

0 comments on commit 6767943

Please sign in to comment.