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 compiling error of deprecated template. #304

Merged
merged 1 commit into from Oct 10, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 8 additions & 4 deletions common/include/pcl/ros/conversions.h
Expand Up @@ -62,7 +62,8 @@ namespace pcl
* createMapping<PointT> (msg.fields, field_map);
* \endcode
*/
PCL_DEPRECATED (template <typename PointT> void fromROSMsg (
template <typename PointT>
PCL_DEPRECATED (void fromROSMsg (
const pcl::PCLPointCloud2& msg, pcl::PointCloud<PointT>& cloud,
const MsgFieldMap& field_map),
"pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead.");
Expand All @@ -78,7 +79,8 @@ namespace pcl
* \param[in] msg the PCLPointCloud2 binary blob
* \param[out] cloud the resultant pcl::PointCloud<T>
*/
PCL_DEPRECATED (template<typename PointT> void fromROSMsg (
template<typename PointT>
PCL_DEPRECATED (void fromROSMsg (
const pcl::PCLPointCloud2& msg, pcl::PointCloud<PointT>& cloud),
"pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead.");
template<typename PointT> void
Expand All @@ -91,7 +93,8 @@ namespace pcl
* \param[in] cloud the input pcl::PointCloud<T>
* \param[out] msg the resultant PCLPointCloud2 binary blob
*/
PCL_DEPRECATED (template<typename PointT> void toROSMsg (
template<typename PointT>
PCL_DEPRECATED (void toROSMsg (
const pcl::PointCloud<PointT>& cloud, pcl::PCLPointCloud2& msg),
"pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead.");
template<typename PointT> void
Expand All @@ -106,7 +109,8 @@ namespace pcl
* CloudT cloud type, CloudT should be akin to pcl::PointCloud<pcl::PointXYZRGBA>
* \note will throw std::runtime_error if there is a problem
*/
PCL_DEPRECATED (template<typename CloudT> void toROSMsg (
template<typename CloudT>
PCL_DEPRECATED (void toROSMsg (
const CloudT& cloud, pcl::PCLImage& msg),
"pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead.");
template<typename CloudT> void
Expand Down
3 changes: 2 additions & 1 deletion io/include/pcl/io/png_io.h
Expand Up @@ -141,7 +141,8 @@ namespace pcl
* \param[in] cloud point cloud to save
* \ingroup io
*/
PCL_DEPRECATED (template <typename T> void savePNGFile (const std::string& file_name, const pcl::PointCloud<T>& cloud),
template <typename T>
PCL_DEPRECATED (void savePNGFile (const std::string& file_name, const pcl::PointCloud<T>& cloud),
"pcl::io::savePNGFile<typename T> (file_name, cloud) is deprecated, please use a new generic "
"function pcl::io::savePNGFile (file_name, cloud, field_name) with \"rgb\" as the field name."
);
Expand Down