智能指针weak_ptr为弱共享指针,实际上是share_ptr的辅助指针,不具备指针的功能。主要是为了协助 shared_ptr 工作,可用来观测资源的使用情况。weak_ptr 只对 shared_ptr 进行引用,而不改变其引用计数,当被观察的 shared_ptr 失效后,相应的 weak_ ...
分类:
其他好文 时间:
2019-12-23 13:41:27
阅读次数:
399
如何实现让自己写的动态链接库工程 (Dynamic-Link Library Project)和测试工程 (比如Console)在同一个解决方案下调试呢? 下面就拿VS2019的DLL项目搭配控制台设置一下联合调试: 先创建一个简单的DLL动态链接库项目,在这里我们把ta命名为"Dll1"。 在Dl ...
分类:
其他好文 时间:
2019-12-23 13:12:44
阅读次数:
266
****打开 vim /etc/profile vim /etc/profile 追加配置 # /etc/profile: system-wide .profile file for the Bourne shell (sh(1))# and Bourne compatible shells (ba ...
分类:
系统相关 时间:
2019-12-22 18:48:13
阅读次数:
155
1、通过brew安装sshpass(手动安装也可以) ①brew安装sshpass brew install https://raw.githubusercontent.com/kadwanev/bigboybrew/master/Library/Formula/sshpass.rb 或者 brew ...
分类:
系统相关 时间:
2019-12-22 18:17:35
阅读次数:
97
Description Shared Virtual Memory (SVM) (Glossary): An address space exposed to both the host and the devices within a context. SVM causes addresses t ...
分类:
其他好文 时间:
2019-12-22 14:56:02
阅读次数:
90
问题现象: 执行ffmpeg命令后报错: 出问题的环境信息为: 看下需要哪些依赖: 可以看到缺失的依赖 我们找下这些文件在哪里 应该都在这个目录 我们export出来: 然后再尝试执行 问题解决 ...
分类:
其他好文 时间:
2019-12-22 12:29:11
阅读次数:
336
"NS3官网" 常见学习板块 "ns 3 tutorial" :ns 3入门教程,包括基本介绍、软件安装、核心概念等; "ns 3 manual" :ns 3手册,介绍ns 3软件的整体架构、核心模块等; ns 3 model library:ns 3模型库,介绍ns 3中各个模块的具体细节; AP ...
分类:
其他好文 时间:
2019-12-21 20:30:30
阅读次数:
98
1、TLS1.3的整个协议的文档规范 请参照 RFC 8846,协议规范中指出,TLS1.3提供三方面的安全属性,分别是身份认证、通信加密、完整性验证。 2、TLS1.3协议主要包括两个组成部分,分别是握手协议、记录协议、其中记录协议包括了警告协议。而握手协议的主要作用是实现双方身份认证,协商加密模 ...
分类:
其他好文 时间:
2019-12-21 13:30:24
阅读次数:
333
ubuntu 14.04 编译opencv-3.4.2 报错解决: 错误信息:/usr/bin/ld: /usr/local/lib/libavformat.a(allformats.o): relocation R_X86_64_32 against `.bss' can not be used ...
分类:
系统相关 时间:
2019-12-21 13:30:06
阅读次数:
439
1.环境 centos6 bochs-2.6.2 2.安装依赖 yum groupinstall -y "Server Platform Development" "Development Tools" yum install kernel-headers kernel-devel qt-devel ...
分类:
其他好文 时间:
2019-12-20 23:48:28
阅读次数:
141