lundi 27 janvier 2020

c++ error: incomplete type is not allowed

I want to rebuild the RplidarCpp.dll file and add some functions to it. I created the project in visual studio 2010. But there are some errors that I can't fix. Please help me to solving them.

thank you very much

#include "stdafx.h"
#include "rplidar.h"
#include <iostream>

#define _DLLEXPORT __declspec(dllexport)

using namespace rp::standalone::rplidar;

class LidarMgr
{
public:
    LidarMgr() ;
    ~LidarMgr();

    const LidarMgr& operator=(const LidarMgr&) = delete;
    const LidarMgr(const LidarMgr &) = delete;

public:
    static RPlidarDriver * lidar_drv;
    bool m_isConnected;
    rplidar_response_device_info_t devinfo;

the errors occur in below lines:

const LidarMgr& operator=(const LidarMgr&) = delete;
const LidarMgr(const LidarMgr &) = delete;

Top code is not complete.

Aucun commentaire:

Enregistrer un commentaire