PointCloudLibrary/pcl — pull request #300 by jspricke (2013-10-08 10:50:01+00:00)
Title: PCL_DEPRECATED doesn't work with template functions in VS2012?

Hi all,

This is the error message I get:

------------

error C2143: syntax error : missing ';' before ''template<'' \io\include\pcl\io\png_io.h	147

------------

The line 144~147 of png_io.h is:

------------
PCL_DEPRECATED (template 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."
);
------------

I think it's a VS2012 problem with deprecated, but I don't know how to fix it or workaround it.