摘要:
ref:http://bbs.csdn.net/topics/360249561一个继承了两个虚基类又增加了自己的一个虚函数pif的类,sizeof(指向pif的指针)竟然是8(X86)。我是从这里http://www.codeproject.com/KB/cpp/FastDelegate.aspx... 阅读全文
posted @ 2014-10-25 22:36
dzqabc
阅读(1375)
评论(0)
推荐(0)
摘要:
echo set cursorline >>.vimrcecho set ic >>.vimrcecho set nu >>.vimrc 阅读全文
posted @ 2014-10-25 22:24
dzqabc
阅读(217)
评论(0)
推荐(0)
摘要:
todolist 阅读全文
posted @ 2014-10-25 22:23
dzqabc
阅读(153)
评论(0)
推荐(0)
摘要:
mybase 阅读全文
posted @ 2014-10-25 22:22
dzqabc
阅读(227)
评论(0)
推荐(0)
摘要:
template class Widget; // uses "class"template class Widget; // uses "typename" 答案:没什么不同。在声明一个 template type parameter(模板类型参数)的时候,class 和 typename 意味... 阅读全文
posted @ 2014-10-25 22:16
dzqabc
阅读(2924)
评论(0)
推荐(2)
摘要:
错误1: template<class T>void temp(std::vector<T>& container){ std::vector<T>::const_iterator p; //error: expected ‘;’ before ‘p’ for(p = container.begin 阅读全文
posted @ 2014-10-25 21:51
dzqabc
阅读(6848)
评论(0)
推荐(1)
摘要:
示例如下:class MyClass{public: MyClass(int a) : _a(a) { } MyClass(const MyClass& rhs){ new(this)MyClass(rhs._a); // placement new } MyClass & operator = (... 阅读全文
posted @ 2014-10-25 21:36
dzqabc
阅读(559)
评论(0)
推荐(0)

浙公网安备 33010602011771号