编译环境:VS2019
boost::bind函数出再"_1"未声明的标识符
头文件定义:
#include <boost/thread/thread.hpp>
#include <pcl/io/openni2_grabber.h>
#include <pcl/visualization/cloud_viewer.h>
#ifdef _x64
# define sleep(x) Sleep((x)*1000)
#endif
部分程序:
boost::function<void (const pcl::PointCloud<pcl::PointXYZ>::ConstPtr&)> f =
boost::bind (&SimpleOpenNIViewer::cloud_cb_, this, _1);