title: PCL1.7.2 in QT5.4.1 --- error: C2589, C2059, C2181 in PCL header file
body: <p>I tried to include my friend's code into my project.</p>
  
  <p>The original code highly uses PCL 1.7.2 so I,</p>
  
  <p>1.Installed PCL 1.7.2 package(not built with source code)</p>
  
  <p>2.Edit INCLUDEPATH and LIBS in myproject.pro file, according to my friend's settings in Visual Studio 2013(yes, he wrote the code under VS2013). e.g
  <a href="https://i.stack.imgur.com/7pjTH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/7pjTH.png" alt="1"></a>
  <a href="https://i.stack.imgur.com/pFLVz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pFLVz.png" alt="2"></a>
  and more lines of path like above.</p>
  
  <p>3.Include the header file in mainwindow.h</p>
  
  <pre><code>#include &lt;opencv2/opencv.hpp&gt;
  #include &lt;opencv2/imgproc/imgproc.hpp&gt;
  #include &lt;opencv/cv.h&gt;
  #include &lt;opencv/highgui.h&gt;
  
  #include &lt;boost/shared_ptr.hpp&gt;
  
  #include &lt;pcl/point_types.h&gt;
  #include &lt;pcl/point_cloud.h&gt;
  #include &lt;pcl/io/ply_io.h&gt;
  #include &lt;pcl/io/pcd_io.h&gt;
  
  #include &lt;pcl/kdtree/kdtree_flann.h&gt;
  #include &lt;pcl/surface/mls.h&gt;
  
  #include &lt;pcl/filters/statistical_outlier_removal.h&gt;
  #include &lt;pcl/filters/voxel_grid.h&gt;
  
  #include &lt;pcl/registration/icp.h&gt;
  #include &lt;pcl/filters/radius_outlier_removal.h&gt;
  
  #include &lt;pcl/features/normal_3d.h&gt;
  #include &lt;pcl/surface/gp3.h&gt;
  
  #include &lt;cv.h&gt;
  #include &lt;cxcore.h&gt;
  
  using namespace cv;
  using namespace std;
  using namespace pcl;
  </code></pre>
  
  <p>4.Build(Compile) the project, and bunch of errors showed up
  <a href="https://i.stack.imgur.com/hDclX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hDclX.png" alt="3"></a></p>
  
  <p>The errors are C2589, C2059 and C2181, basically lie in PCL headers like io_operators.h, pcl_io.h, correspondence.h, cloud_iterator.h. I have totally no clue of these, does this means I have to edit PCL's header files?</p>