摘要:
在C++中编写一个类,如果我们没明确的创建 拷贝函数和 opertae=的重载,IDE一般会在编译的时候主动添加;在Boost库中,对mutex类没有实现其拷贝和operate=函数,查看其mutex.hpp文件可见如下:classmutex:public::boost::detail::underlying_mutex{private:mutex(mutexconst&);mutex&operator=(mutexconst&);public:mutex(){initialize();}~mutex(){destroy();}typedefunique_lock< 阅读全文
posted @ 2012-10-25 15:33
lianghugg
阅读(1810)
评论(0)
推荐(0)

浙公网安备 33010602011771号