错误(活动)E0493没有重载函数“ NodeInfo :: NodeInfo”的实例与指定的类型匹配。
在下面的NodeInfo.cpp文件中,构造器中出现错误
NodeInfo.h
enum DataType { integer, floatNumber, string };
class NodeInfo
{
DataType dataType;
IntrusivePtr_t<NodeId_t> nodeId;
std::string displayName;
CString browsePath;
CString dataValue;
public:
CString GetNodeName();
};
NodeInfo.cpp
#include "NodeInfo.h"
NodeInfo::NodeInfo(IntrusivePtr_t<NodeId_t> _nodeId)
{
nodeId = _nodeId;
}
CString NodeInfo::GetNodeName()
{
CString strNodeNmae;
return strNodeNmae;
}