博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[err]default argument given for parameter 3 of '***'
阅读量:4594 次
发布时间:2019-06-09

本文共 674 字,大约阅读时间需要 2 分钟。

err

~/src/helper.cpp: In function ‘cv::Mat align_mean(cv::Mat, cv::Rect, float, float, float, float)’:~/src/helper.cpp:55:146: error: default argument given for parameter 3 of ‘cv::Mat align_mean(cv::Mat, cv::Rect, float, float, float, float)’ [-fpermissive] cv::Mat align_mean(cv::Mat mean, cv::Rect facebox, float scaling_x=1.0f, float scaling_y=1.0f, float translation_x=0.0f, float translation_y=0.0f)

yuanyin:

既可以在类的声明中,也可以在函数定义中声明缺省参数,但不能既在类声明中又在函数定义中同时声明缺省参数。

You can declare default arguments in the class declaration or in the function definition, but not both.

因此,将定义或声明中的任一个缺省参数删除即可。

ref

1. ;

2. ;

3. ;

end

转载于:https://www.cnblogs.com/happyamyhope/p/10413565.html

你可能感兴趣的文章
浅谈hive
查看>>
SQL的OPENROWSET开启和使用方法
查看>>
python的类和对象——类的静态字段番外篇
查看>>
oc小总结
查看>>
Chrome 开发者工具介绍(一)
查看>>
面向对象-this关键字的内存图解
查看>>
梦断代码阅读笔记1
查看>>
ibatis报错
查看>>
SCN学习
查看>>
mysql的启动
查看>>
TCP端口状态说明ESTABLISHED、TIME_WAIT、 CLOSE_WAIT
查看>>
自己电脑能ping别人的,但别人电脑去不能跟我们的电脑通信
查看>>
制作自动化系统安装U盘
查看>>
python模块之xml.etree.ElementTree
查看>>
谷歌模拟
查看>>
【NOI2012】迷失游乐园
查看>>
新版火狐浏览器(61.0.2 (64 位))之元素定位解析
查看>>
wordpress调用指定post type文章怎么操作
查看>>
postgresql 自定义排序
查看>>
微软IIS的ISAPI筛选器权限法则
查看>>