背景:在写C++代码时,模板类的成员函数里面调了一个其他文件中的普通函数(没有使用模板),结果出现错误:

error: there are no arguments to ‘xxxx’ that depend on a template parameter, so a declaration of ‘xxxx’ must be available [-fpermissive]

大概就是一个模板函数中,调用了一个不在当前文件的函数,导致编译器无法确定这个函数到底是哪来的,可以当前文件中使用一个普通函数来桥接一下外部函数,然后供模板类中的成员函数使用。

error: there are no arguments to ‘xxxx’ that depend on a template parameter, so a declaration of ‘xx相关推荐

  1. 查BUG笔记-error:there are no arguments to ‘XXX‘ that depend on a template parameter,so a declaration of

    问题 error:there are no arguments to 'XXX' that depend on a template parameter,so a declaration of 'XX ...

  2. OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (wher

    OpenCV Error: Sizes of input arguments do not match (The operation is neither 'array op array' (wher ...

  3. error: invalid use of incomplete type 'XXXX' ;error: forward declaration of 'XXXX' 声明改为包含头文件

    error: invalid use of incomplete type 'XXXX' error: forward declaration of XXXX 声明改为包含头文件 class XXXX ...

  4. Module not found: Error: Can't resolve 'XXX' in 'XXXX'

    故障 控制台运行webpack/npm时出现 Module not found: Error: Can't resolve 'XXX' in 'XXXX' 解决方案 npm i XXX --save ...

  5. docker error pulling image configuration dial tcp xxxx:443: i/o timeout

    docker error pulling image configuration dial tcp xxxx:443: i/o timeout windows下使用docker时候会遇到面这种情况 U ...

  6. error #18 expected a “)”和error #140 too many arguments in function call

    1.当宏定义名和函数形参名冲突时,会在函数声明的地方出现错误error #18 expected a ")" 例如:#define SlaveAddress 0xD0 uint8_ ...

  7. ORA-19502: write error on file xxxxx, block number xxxx

    错误现象: 在ORACLE 10g下为表空间IGNITE_EGVSQL01增加数据文件时,报如下错误: SQL> ALTER TABLESPACE IGNITE_EGVSQL01      AD ...

  8. error LNK2005: _main already defined in xxxx.obj

    编号:LNK2005 直译:_main已经存在于xxxx.obj中了. 原因: 原因是该程序中有多个(不止一个)main函数,这个错误通常不是你在同一个文件中包含有两个main函数,而是在一个proj ...

  9. http: TLS handshake error from xxx.xxx.xxx.xxx:xxxx : read tcp xxx.xxx.xxx.xxx:6443->xxx.xxx.xxx.xxx

    目录 一.问题描述 二.问题分析 解决方法: 一.问题描述 使用阿里云SLB做 kube-apiserver负载,查看kube-apiserver 日志一直在报 TLS handshake error ...

最新文章

  1. 计算机音乐戏子多秋,抖音戏子多秋是什么歌
  2. 基于CSDN完成TEASOFT的MOOC编辑整理
  3. Lesson 8.1Lesson 8.2 决策树的核心思想与建模流程CART分类树的建模流程与sklearn评估器参数详解
  4. 非常漂亮的后台登录页面源码
  5. 抽取类的#技巧#成员变量最可能
  6. shell 参数,shell与Java 交互参数
  7. mysql 拷贝权限_mysql复制表的三种方法+grant三类权限说明
  8. SpringMVC返回JSON格式数据
  9. 【Java】# Java对图片进行base64编解码
  10. shiro原理_java:shiro高级篇——4
  11. Pythonblog_henry_dx_新浪博客
  12. SVN Eclipse插件Subclipse安装和配置
  13. MATLAB:Your network connectionmay be down or your proxy settings improperly configured
  14. 如何在家里制作服务器,在家如何架设服务器?
  15. 2022CCPC广州 L. Station of Fate gym104053L
  16. 吉布斯采样(Gibbs Sampling)及相关算法
  17. Windows8内核模式下开发NDIS应用-NDIS Filter讲解
  18. 巴贝奇的差分机与分析机
  19. EtherNet IP以太网IO接口工业读写器|读卡器CK-FR12-E01性能与PLC组网攻略
  20. 基于STM32的智能风扇的制作

热门文章

  1. 机器学习数据集汇总(附下载地址)
  2. VS2013+Windows+CPU下搭建caffe框架并利用mnist数据集实验
  3. 仿真软件proteus构建LCD1602显示字符串实验
  4. html科学计算器,vue.js实现的经典计算器/科学计算器功能示例
  5. 学生硬件电路设计经验教训浅谈
  6. linux - 安装 telnet-server
  7. 幻方5*5(java实现)
  8. 为儿童设计的Android 4.0平板MEEP!
  9. Uedit32里面在哪儿设置去掉它自己生成的.bak文件?
  10. oracle穿越网闸,使Oracle穿越防火墙