Loading

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 77 下一页
摘要: 问题 使用traits接收来自中间件的变量,调用拷贝构造函数时提示use of deleted function错误。 解释 仔细检查对应类中定义了移动构造函数,而没有显式定义拷贝构造函数。而问题就出在这: If the class definition does not explicitly de 阅读全文
posted @ 2022-04-01 21:30 azureology 阅读(3253) 评论(0) 推荐(0)
摘要: 需求 深度学习目标检测常用的IOU(交并比)计算手动实现 实现 ┌─────────────────────────────────► X │ │ ( x1,y1) │ ┌─────────────┐ │ │ │ │ │ A ┌──────┼────────────┐ │ │ │ │ │ │ └── 阅读全文
posted @ 2022-04-01 20:50 azureology 阅读(157) 评论(0) 推荐(0)
摘要: 场景 使用C++编写模板函数希望特化某个模板参数的行为,可以采用std::enable_if进行偏特化。 实现 先熟悉std::enable_if的规则 template< bool B, class T = void > struct enable_if; 当B = True时std::enabl 阅读全文
posted @ 2022-03-23 23:14 azureology 阅读(441) 评论(0) 推荐(0)
摘要: 问题 使用C++对类的成员变量进行初始化赋值。 class A { private: std::vector<int> vec(10,0); } 报错expected identifier before numeric constant 原因 事实上C++不允许在类的成员变量中使用()初始化,编译器 阅读全文
posted @ 2022-03-22 10:40 azureology 阅读(618) 评论(0) 推荐(0)
摘要: 前言 经常跟Docker打交道,对于容器net参数有了一定程度的认识,常用以下几种: none bridge host macvlan 分解 none 字面意思,用于创建无网络的容器。 docker run -it --rm --net none ubuntu:20.04 bash bridge 默 阅读全文
posted @ 2022-03-20 14:24 azureology 阅读(439) 评论(0) 推荐(0)
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 77 下一页