- 博客(6)
- 收藏
- 关注
原创 unique_ptr默认构造,小发现
试了下C++11的unique_ptr,发现有个有意思的现象,看如下代码: int* a=new int(3); int* b=new int(4); unique_ptr ua(); unique_ptr ub(b); ua=nullptr; ua=move(ub);编译居然不通过,一开始莫名其妙,看了编译error信息:error: c
2015-04-25 19:54:29
921
原创 C++ 注意事项
1. Secrets of Boost Revealed: Checked Deletehttp://www.cplusplus.com/forum/articles/44968/看boost的smart ptr 的实现时,发现templateclass T> void checked_delete(T* p),查了一下:当对不完整的类(看不到implementation)
2014-12-13 00:11:02
383
原创 boost程序库完全开发指南——深入C++“准”标准库——读书零碎笔记
1.smart_ptrscoped_ptr和auto_ptr,不能作为容器的元素,auto_ptr是因为其转移语义,scoped_ptr
2014-10-21 14:49:25
1059
原创 ubuntu使用
14.04 安装chromewget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
2014-10-09 19:20:13
500
原创 邦邦二维码生成
隐私策略 Privacy Policy本应用不会收集您的任何个人信息。 This application does not collect any of your personal information. yuebone
2014-07-04 12:00:00
2156
原创 win8使用心得
比较早我就把win7换成win8了,这次因为微软实训课的关系,升级到win8.1.刚开始使用win8时觉得很新鲜,本来我就对开始菜单无感,所以比较能接受metro,反而觉得metro挺好玩的。抱着尝鲜的心态,换新系统的那几天,可爱逛应用商店,有些应用装了又卸(PC终究对应用无感啊),真为windows应用商店捉急,最后留下来的就几个应用。我最喜欢的是sider+,
2014-06-11 16:50:44
654
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人