博客地址:http://home.cnblogs.com/u/zengjianrong/
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页
摘要: ~$ cat ~/.vimrc set expandtab # tab to space set number set tabstop=2 # tab size as 2 space set shiftwidth=2 # return line with 2 space set ruler # sh 阅读全文
posted @ 2021-06-16 11:29 black_man 阅读(44) 评论(0) 推荐(0) 编辑
摘要: AddressSanitizer论文解读 google/sanitizers Instrumentation Options (Using the GNU Compiler Collection (GCC)) MEDS:增强型内存错误检测Sanitizer -fsanitize=address:En 阅读全文
posted @ 2021-06-03 10:59 black_man 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 通过--recursive 标志来做依赖库的下载,例如: git clone https://hub.fastgit.org/eProsima/xtypes.git --recursive 阅读全文
posted @ 2021-05-26 11:54 black_man 阅读(641) 评论(0) 推荐(0) 编辑
摘要: 参考链接: http://pfultz2.com/blog/2012/07/31/reflection-in-under-100-lines/ https://zhuanlan.zhihu.com/p/165993590 & https://github.com/netcan/recipes/tre 阅读全文
posted @ 2021-03-12 17:04 black_man 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. 变量传递,同makefile,变量可由上至下传递,包括路径声明,不带target的link_libraries等; 顶层cmakelist INCLUDE_DEREATORIES(${CMAKE_CURRENT_SOURCE_DIR}/inc)ADD_SUBDIREATORY(xx) 底层xx 阅读全文
posted @ 2021-03-04 16:05 black_man 阅读(367) 评论(0) 推荐(0) 编辑
摘要: cpp cpp核心指导方真: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md cppreference 的中文版:https://www.bookstack.cn/read/cppreferen 阅读全文
posted @ 2021-02-08 12:06 black_man 阅读(74) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2021-02-04 17:25 black_man 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 1. 类成员函数转成std::function及lambda class MyClass{ pub: int Func(int a) {}; }; int main(void) { MyClass my_class; std::function<int(int a)> func_ = std::bi 阅读全文
posted @ 2021-02-02 21:36 black_man 阅读(246) 评论(0) 推荐(0) 编辑
摘要: cv::Mat image(msg->height, msg->width, CV_8UC1);; memcpy(image.data, msg->data, msg->height*msg->width); cv::Mat yu12(msg->height*3/2, msg->width, CV_ 阅读全文
posted @ 2021-02-02 16:06 black_man 阅读(43) 评论(0) 推荐(0) 编辑
摘要: 1. 批量添加目录: export PATH=$PATH$( find /usr/local/examples/ -type d -printf ":%p" ) export PATH=$PATH$( find /usr/local/examples/ -type d -printf ":%p" ) 阅读全文
posted @ 2021-02-01 16:08 black_man 阅读(49) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 13 下一页