diff --git a/common/include/pcl/ros/conversions.h b/common/include/pcl/ros/conversions.h index b15444343ba..2e9454b8f7b 100644 --- a/common/include/pcl/ros/conversions.h +++ b/common/include/pcl/ros/conversions.h @@ -62,7 +62,8 @@ namespace pcl * createMapping (msg.fields, field_map); * \endcode */ - PCL_DEPRECATED (template void fromROSMsg ( + template + PCL_DEPRECATED (void fromROSMsg ( const pcl::PCLPointCloud2& msg, pcl::PointCloud& cloud, const MsgFieldMap& field_map), "pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead."); @@ -78,7 +79,8 @@ namespace pcl * \param[in] msg the PCLPointCloud2 binary blob * \param[out] cloud the resultant pcl::PointCloud */ - PCL_DEPRECATED (template void fromROSMsg ( + template + PCL_DEPRECATED (void fromROSMsg ( const pcl::PCLPointCloud2& msg, pcl::PointCloud& cloud), "pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead."); template void @@ -91,7 +93,8 @@ namespace pcl * \param[in] cloud the input pcl::PointCloud * \param[out] msg the resultant PCLPointCloud2 binary blob */ - PCL_DEPRECATED (template void toROSMsg ( + template + PCL_DEPRECATED (void toROSMsg ( const pcl::PointCloud& cloud, pcl::PCLPointCloud2& msg), "pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead."); template void @@ -106,7 +109,8 @@ namespace pcl * CloudT cloud type, CloudT should be akin to pcl::PointCloud * \note will throw std::runtime_error if there is a problem */ - PCL_DEPRECATED (template void toROSMsg ( + template + PCL_DEPRECATED (void toROSMsg ( const CloudT& cloud, pcl::PCLImage& msg), "pcl::fromROSMsg is deprecated, please use fromPCLPointCloud2 instead."); template void diff --git a/io/include/pcl/io/png_io.h b/io/include/pcl/io/png_io.h index c82c32c7433..a9b1fd7bab8 100644 --- a/io/include/pcl/io/png_io.h +++ b/io/include/pcl/io/png_io.h @@ -141,7 +141,8 @@ namespace pcl * \param[in] cloud point cloud to save * \ingroup io */ - PCL_DEPRECATED (template void savePNGFile (const std::string& file_name, const pcl::PointCloud& cloud), + template + PCL_DEPRECATED (void savePNGFile (const std::string& file_name, const pcl::PointCloud& cloud), "pcl::io::savePNGFile (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." );