everything! I maintain a channel data group in a map container from which you can access the data of individual channels by channel name. In this regard, I am writing a simple GetIRChannelData function (see the following code). When executing the command pusIRChannelData = cit->second(); an error is issued that reads
error C2064: term does not evaluate to a function taking 0 arguments
The whole function performed is nothing more than a search for a specific channel name / identifier in the map container and assigning it to a pointer to a temporary pointer, if found. Could you show me what happened?
const Array2D<unsigned short>* GetIRChannelData(std::string sChannelName) const { const Array2D<unsigned short>* pusIRChannelData = NULL; for (std::map<std::string, Array2D<unsigned short>* >::const_iterator cit = m_usIRDataPool.begin(); cit != m_usIRDataPool.end(); ++cit) { std::string sKey = cit->first; if (sKey == sChannelName) { pusIRChannelData = cit->second();
GoldenLee
source share