Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(autoware_pointcloud_preprocessor): fix passedByValue #8242

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1932,7 +1932,7 @@ class Table
}

template <typename... Args>
iterator emplace_hint(const_iterator position, Args &&... args)
iterator emplace_hint(const const_iterator & position, Args &&... args)
{
(void)position;
return emplace(std::forward<Args>(args)...).first;
Expand All @@ -1951,14 +1951,14 @@ class Table
}

template <typename... Args>
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>(args)...).first;
}

template <typename... Args>
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>(args)...).first;
Expand All @@ -1977,14 +1977,14 @@ class Table
}

template <typename Mapped>
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<Mapped>(obj)).first;
}

template <typename Mapped>
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<Mapped>(obj)).first;
Expand All @@ -1996,15 +1996,15 @@ 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;
}

std::pair<iterator, bool> 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;
Expand Down
Loading