which is of non-class type报错

c++编译代码遇到which is of non-class type

粗心导致的一个问题,看了很久,记录一下

代码展示

CmdType* Context::getCmdType(const string& req)
{
    vector<CmdType* >::iterator iter = _vecCmd.begin();
    while((iter != _vecCmd.end()) && (iter->isSupportCmd(req)))
    {   
        iter++;
        return *iter;
    }   

    return NULL;
}   
In member function 'CmdType* Context::getCmdType(const std::string&)
request for member 'isSupportCmd' in '* iter.__gnu_cxx::__normal_iterator<_Iterator, _Container>::operator-> [with _Iterator = CmdType**, _Container = std::vector<CmdType*, std::allocator<CmdType*> >]()', **which is of non-class type** 'CmdType*'

分析

查看报错发现粗心导致类型错误, isSupportCmd的调用需要CmdType*,仔细查看代码发现iter->isSupportCmd(req) iter是cmdType**类型,*iter才是

修改

iter->isSupportCmd(req) 修改(*iter)->isSupportCmd(req) 问题解决

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
The analysis of big data at exascale (1018 bytes or flops) has introduced the emerging need to reexamine the existing hardware platform that can support intensive dataoriented computing. A big-data-driven application requires huge bandwidth with maintained low-power density. For example, web-searching application involves crawling, comparing, ranking, and paging of billions of web pages with extensive memory access. At the same time, the analysis of such a huge data at exascale is a national interest due to cybersecurity need. One needs to provide scalable bigdata storage and processing solution that can detect malicious attack from the sea of data, which is beyond the capability of a pure software-based data analytic solution. The key bottleneck is from the current data storage and processing hardware, which has not only the well-known memory wall and power wall with limited accessing bandwidth but also large leakage power at advanced CMOS technology nodes. One needs to design an energy-efficient hardware platform for future big-data storage that can also support data-intensive processing for data recognition in both image and security applications. Memory is any physical device that is able to temporarily or permanently hold the state of information. Memories can be generally classified into two categories: volatile and nonvolatile. Static and dynamic random-access memories (SRAM and DRAM) are examples of volatile memories that can be accessed in nanosecond of speed, but the stored data will be lost when powered off. The flash and hard disk drive (HDD) are examples of nonvolatile memories. Imagine the life where one can start a computer in the blink of an eye, without having to wait for the operation system to load, or transfer full-length high-definition movie by memory stick in seconds rather than hours. Such a life would happen if a universal nonvolatile memory could be developed that not only can retain information without external power but also can be access
The electronics and information technology revolution continues, but it is a critical time in the development of technology. Once again, we stand on the brink of a new era where emerging research will yield exciting applications and products destined to transform and enrich our daily lives! The potential is staggering and the ultimate impact is unimaginable, considering the continuing marriage of technology with fields such as medicine, communications and entertainment, to name only a few. But who will actually be responsible for transforming these potential new products into reality? The answer, of course, is today’s (and tomorrow’s) design engineers! The design of integrated circuits today remains an essential discipline in support of technological progress, and the authors of this book have taken a giant step forward in the development of a practice-oriented treatise for design engineers who are interested in the practical, industry-driven world of integrated circuit design. The authors, Giovanni Campardo and Rino Micheloni, are very well qualified to effectively address this challenging objective. Both have a solid track record of leading design activities at the STMicroelectronics Flash Division. I should probably mention at this point my association with and knowledge of the accomplishments of these authors. In April 2003, they published a unique Special Issue on the subject of Flash Memories for the Proceedings of the IEEE, the journal for which I am Managing Editor. Therefore, I have firsthand knowledge of their approach to the development of very well crafted technical material.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值