摘要:
~$ 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 阅读全文
摘要:
AddressSanitizer论文解读 google/sanitizers Instrumentation Options (Using the GNU Compiler Collection (GCC)) MEDS:增强型内存错误检测Sanitizer -fsanitize=address:En 阅读全文
摘要:
通过--recursive 标志来做依赖库的下载,例如: git clone https://hub.fastgit.org/eProsima/xtypes.git --recursive 阅读全文
摘要:
参考链接: http://pfultz2.com/blog/2012/07/31/reflection-in-under-100-lines/ https://zhuanlan.zhihu.com/p/165993590 & https://github.com/netcan/recipes/tre 阅读全文
摘要:
https://www.cnblogs.com/zengjianrong/p/17010429.html 1. 变量传递,同makefile,变量可由上至下传递,包括路径声明,不带target的link_libraries等; 顶层cmakelist INCLUDE_DEREATORIES(${CM 阅读全文
摘要:
cpp cpp核心指导方真: https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md cppreference 的中文版:https://www.bookstack.cn/read/cppreferen 阅读全文
摘要:
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 阅读全文
摘要:
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_ 阅读全文