From 0c794bc181aa67b6aa7c0d45463dfd8500cfa33e Mon Sep 17 00:00:00 2001 From: "John Z. Li" Date: Fri, 20 Nov 2020 14:16:58 +0800 Subject: [PATCH 1/4] Update buffer_core.h BufferCore should be movable. --- tf2/include/tf2/buffer_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tf2/include/tf2/buffer_core.h b/tf2/include/tf2/buffer_core.h index 58ca1a557..a222efa32 100644 --- a/tf2/include/tf2/buffer_core.h +++ b/tf2/include/tf2/buffer_core.h @@ -98,6 +98,7 @@ class BufferCore * */ BufferCore(ros::Duration cache_time_ = ros::Duration(DEFAULT_CACHE_TIME)); + BufferCore(BufferCore&&) = default; virtual ~BufferCore(void); /** \brief Clear all data */ From 5326974d4717ad430c3cf408ea6bc36c427e4ccf Mon Sep 17 00:00:00 2001 From: "John Z. Li" Date: Fri, 20 Nov 2020 14:18:39 +0800 Subject: [PATCH 2/4] Update buffer.h Buffer should be movable --- tf2_ros/include/tf2_ros/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tf2_ros/include/tf2_ros/buffer.h b/tf2_ros/include/tf2_ros/buffer.h index 835dfa2f6..e7a112182 100644 --- a/tf2_ros/include/tf2_ros/buffer.h +++ b/tf2_ros/include/tf2_ros/buffer.h @@ -61,6 +61,7 @@ namespace tf2_ros * @return */ Buffer(ros::Duration cache_time = ros::Duration(BufferCore::DEFAULT_CACHE_TIME), bool debug = false); + Buffer(Buffer&&) = default; /** \brief Get the transform between two frames by frame ID. * \param target_frame The frame to which data should be transformed From 119076302760e9909659dce32a7dd6d7c2c65281 Mon Sep 17 00:00:00 2001 From: "John Z. Li" Date: Mon, 23 Nov 2020 15:07:56 +0800 Subject: [PATCH 3/4] Update buffer_core.h also add move assignment operator to BufferCore --- tf2/include/tf2/buffer_core.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tf2/include/tf2/buffer_core.h b/tf2/include/tf2/buffer_core.h index a222efa32..0222878f8 100644 --- a/tf2/include/tf2/buffer_core.h +++ b/tf2/include/tf2/buffer_core.h @@ -99,6 +99,7 @@ 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 */ From 91c77a28b4fdc2248445827bde7ec382a4b41294 Mon Sep 17 00:00:00 2001 From: "John Z. Li" Date: Mon, 23 Nov 2020 15:10:41 +0800 Subject: [PATCH 4/4] Update buffer.h also add move assignment operator --- tf2_ros/include/tf2_ros/buffer.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tf2_ros/include/tf2_ros/buffer.h b/tf2_ros/include/tf2_ros/buffer.h index e7a112182..6af734729 100644 --- a/tf2_ros/include/tf2_ros/buffer.h +++ b/tf2_ros/include/tf2_ros/buffer.h @@ -62,6 +62,7 @@ namespace tf2_ros */ 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