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

Class BufferCore and class Buffer should be movable #485

Open
wants to merge 4 commits into
base: noetic-devel
Choose a base branch
from
Open
Show file tree
Hide file tree
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
2 changes: 2 additions & 0 deletions tf2/include/tf2/buffer_core.h
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ class BufferCore
*
*/
BufferCore(ros::Duration cache_time_ = ros::Duration(DEFAULT_CACHE_TIME));
BufferCore(BufferCore&&) = default;
BufferCore& operator=(BufferCore&&) = default;
virtual ~BufferCore(void);

/** \brief Clear all data */
Expand Down
2 changes: 2 additions & 0 deletions tf2_ros/include/tf2_ros/buffer.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ namespace tf2_ros
* @return
*/
Buffer(ros::Duration cache_time = ros::Duration(BufferCore::DEFAULT_CACHE_TIME), bool debug = false);
Buffer(Buffer&&) = default;
Buffer& operator=(Buffer&&) = default;

/** \brief Get the transform between two frames by frame ID.
* \param target_frame The frame to which data should be transformed
Expand Down