From 7155872d3e24786d53ffd9d7b70a6b48a760e0fb Mon Sep 17 00:00:00 2001 From: kobayu858 Date: Mon, 29 Jul 2024 16:58:25 +0900 Subject: [PATCH] fix:passedByValue Signed-off-by: kobayu858 --- .../src/downsample_filter/robin_hood.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h index f04a84968dbbb..2818e34a0601f 100644 --- a/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h +++ b/sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h @@ -1932,7 +1932,7 @@ class Table } template - iterator emplace_hint(const_iterator position, Args &&... args) + iterator emplace_hint(const const_iterator & position, Args &&... args) { (void)position; return emplace(std::forward(args)...).first; @@ -1951,14 +1951,14 @@ class Table } template - iterator try_emplace(const_iterator hint, const key_type & key, Args &&... args) + iterator try_emplace(const const_iterator & hint, const key_type & key, Args &&... args) { (void)hint; return try_emplace_impl(key, std::forward(args)...).first; } template - iterator try_emplace(const_iterator hint, key_type && key, Args &&... args) + iterator try_emplace(const const_iterator & hint, key_type && key, Args &&... args) { (void)hint; return try_emplace_impl(std::move(key), std::forward(args)...).first; @@ -1977,14 +1977,14 @@ class Table } template - iterator insert_or_assign(const_iterator hint, const key_type & key, Mapped && obj) + iterator insert_or_assign(const const_iterator & hint, const key_type & key, Mapped && obj) { (void)hint; return insertOrAssignImpl(key, std::forward(obj)).first; } template - iterator insert_or_assign(const_iterator hint, key_type && key, Mapped && obj) + iterator insert_or_assign(const const_iterator & hint, key_type && key, Mapped && obj) { (void)hint; return insertOrAssignImpl(std::move(key), std::forward(obj)).first; @@ -1996,7 +1996,7 @@ class Table return emplace(keyval); } - iterator insert(const_iterator hint, const value_type & keyval) + iterator insert(const const_iterator & hint, const value_type & keyval) { (void)hint; return emplace(keyval).first; @@ -2004,7 +2004,7 @@ class Table std::pair insert(value_type && keyval) { return emplace(std::move(keyval)); } - iterator insert(const_iterator hint, value_type && keyval) + iterator insert(const const_iterator & hint, value_type && keyval) { (void)hint; return emplace(std::move(keyval)).first;