Skip to content

Commit 19a1550

Browse files
authored
fix(autoware_pointcloud_preprocessor): fix passedByValue (#8242)
fix:passedByValue Signed-off-by: kobayu858 <yutaro.kobayashi@tier4.jp>
1 parent 87df6ad commit 19a1550

File tree

1 file changed

+7
-7
lines changed
  • sensing/autoware_pointcloud_preprocessor/src/downsample_filter

1 file changed

+7
-7
lines changed

Diff for: sensing/autoware_pointcloud_preprocessor/src/downsample_filter/robin_hood.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -1932,7 +1932,7 @@ class Table
19321932
}
19331933

19341934
template <typename... Args>
1935-
iterator emplace_hint(const_iterator position, Args &&... args)
1935+
iterator emplace_hint(const const_iterator & position, Args &&... args)
19361936
{
19371937
(void)position;
19381938
return emplace(std::forward<Args>(args)...).first;
@@ -1951,14 +1951,14 @@ class Table
19511951
}
19521952

19531953
template <typename... Args>
1954-
iterator try_emplace(const_iterator hint, const key_type & key, Args &&... args)
1954+
iterator try_emplace(const const_iterator & hint, const key_type & key, Args &&... args)
19551955
{
19561956
(void)hint;
19571957
return try_emplace_impl(key, std::forward<Args>(args)...).first;
19581958
}
19591959

19601960
template <typename... Args>
1961-
iterator try_emplace(const_iterator hint, key_type && key, Args &&... args)
1961+
iterator try_emplace(const const_iterator & hint, key_type && key, Args &&... args)
19621962
{
19631963
(void)hint;
19641964
return try_emplace_impl(std::move(key), std::forward<Args>(args)...).first;
@@ -1977,14 +1977,14 @@ class Table
19771977
}
19781978

19791979
template <typename Mapped>
1980-
iterator insert_or_assign(const_iterator hint, const key_type & key, Mapped && obj)
1980+
iterator insert_or_assign(const const_iterator & hint, const key_type & key, Mapped && obj)
19811981
{
19821982
(void)hint;
19831983
return insertOrAssignImpl(key, std::forward<Mapped>(obj)).first;
19841984
}
19851985

19861986
template <typename Mapped>
1987-
iterator insert_or_assign(const_iterator hint, key_type && key, Mapped && obj)
1987+
iterator insert_or_assign(const const_iterator & hint, key_type && key, Mapped && obj)
19881988
{
19891989
(void)hint;
19901990
return insertOrAssignImpl(std::move(key), std::forward<Mapped>(obj)).first;
@@ -1996,15 +1996,15 @@ class Table
19961996
return emplace(keyval);
19971997
}
19981998

1999-
iterator insert(const_iterator hint, const value_type & keyval)
1999+
iterator insert(const const_iterator & hint, const value_type & keyval)
20002000
{
20012001
(void)hint;
20022002
return emplace(keyval).first;
20032003
}
20042004

20052005
std::pair<iterator, bool> insert(value_type && keyval) { return emplace(std::move(keyval)); }
20062006

2007-
iterator insert(const_iterator hint, value_type && keyval)
2007+
iterator insert(const const_iterator & hint, value_type && keyval)
20082008
{
20092009
(void)hint;
20102010
return emplace(std::move(keyval)).first;

0 commit comments

Comments
 (0)