摘要: 1. 传统继承类的设计 static void print_object(const char* name, void* this_, size_t size) { void** ugly = reinterpret_cast(this_); size_t i; printf("created %s at address %p of size %zu\n", nam... 阅读全文
posted @ 2016-04-22 09:13 Frankww 阅读(247) 评论(0) 推荐(0) 编辑
摘要: 1. 最常见情况 2. Reference to Const 3. Pointers and Const 4. Const的不同Level 5. const与Class 5.1 const member function - 函数的末尾有const 5.2 返回值使用const Reference https://isocpp.org/wiki/faq/c... 阅读全文
posted @ 2016-04-22 09:12 Frankww 阅读(197) 评论(0) 推荐(0) 编辑