LASReader.h
class LASReader
{
public:
LASReader();
~LASReader();
Point3 (LASReader::*GetPoint)();
private:
Point3 GetPointF0();
Point3 GetPointF1();
Point3 GetPointF2();
Point3 GetPointF3();
Point3 GetPointF4();
Point3 GetPointF5();
};
LASReader.cpp
switch (m_header.PointDataFormat)
{
case 0:
m_formatSize = sizeof(LASPOINTF0);
GetPoint = &LASReader::GetPointF0;
break;
case 1:
m_formatSize = sizeof(LASPOINTF1);
GetPoint = &LASReader::GetPointF1;
break;
case 2:
m_formatSize = sizeof(LASPOINTF2);
GetPoint = &LASReader::GetPointF2;
break;
case 3:
m_formatSize = sizeof(LASPOINTF3);
GetPoint = &LASReader::GetPointF3;
break;
case 4:
m_formatSize = sizeof(LASPOINTF4);
GetPoint = &LASReader::GetPointF4;
break;
case 5:
m_formatSize = sizeof(LASPOINTF5);
GetPoint = &LASReader::GetPointF5;
break;
default:
break; // Unknown Point Data Format
}
main.cpp
Point3 p = reader->GetPoint;
「エラー C2440: 'initializing' : 'Point3 (__cdecl LASReader::* )(void)' から 'Point3' に変換できません」
ブレスレットを使うとき
Point3 p = reader->GetPoint();
「エラー C2064: 項は引数を 0 個取る関数として評価されません」
私は何を間違っていますか?