摘要: 把所有的.cc文件改成.cpp文件find . -name "*.cc" | while read file; do mv $file `echo $file |sed 's/\.cc$/\.cpp/'`; done感觉有点二了,找到更好的办法在补充。。。 阅读全文
posted @ 2012-07-05 22:20 Leo Forest 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 原文:http://www.cppblog.com/luke/archive/2009/03/13/76411.html今日粗看boost的代码,发现很多类都继承noncopyable,以下是noncopyable的代码:class noncopyable { protected: noncopyable() {} ~noncopyable() {} private: // emphasize the following members are private noncopyable( const noncopyable& ); const noncopyable& opera 阅读全文
posted @ 2012-07-05 18:01 Leo Forest 阅读(226) 评论(0) 推荐(0) 编辑