Skip to content

Fix compiler selecting the wrong function overload#3

Merged
felixvd merged 1 commit intofelixvd:add-object-originfrom
JafarAbdi:pr-fix_overload
Jul 6, 2021
Merged

Fix compiler selecting the wrong function overload#3
felixvd merged 1 commit intofelixvd:add-object-originfrom
JafarAbdi:pr-fix_overload

Conversation

@JafarAbdi
Copy link
Copy Markdown

Description

Using brackets is causing the function to call itself and copy construct the last two parameters rather than calling the vector version

Checklist

  • Required: Code is auto formatted using clang-format
  • Extended the tutorials / documentation, if necessary reference
  • Include a screenshot if changing a GUI
  • Optional: Created tests, which fail without this PR reference
  • Optional: Decide if this should be cherry-picked to other current ROS branches (Indigo, Jade, Kinetic)

@JafarAbdi JafarAbdi mentioned this pull request Jul 6, 2021
5 tasks
@felixvd felixvd merged commit c7e4630 into felixvd:add-object-origin Jul 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants