![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
C++
CC-xx
这个作者很懒,什么都没留下…
展开
-
C++ 强制inline
<br />#ifndef FORCEINLINE<br /> #if defined(__GNUC__)<br />#define FORCEINLINE __inline __attribute__ ((always_inline))<br /> #elif defined(_MSC_VER)<br /> #define FORCEINLINE __forceinline<br /> #endif<br />#endif<br />#ifndef NOINLINE<br /> #if de原创 2011-05-30 21:17:00 · 1486 阅读 · 0 评论 -
关于类扩展的几种方式的思考
暂定原创 2011-07-16 22:15:16 · 466 阅读 · 0 评论 -
C++ Unit Test Framework(单元测试框架)
C++ Unit Test Framework(单元测试框架): http://en.wikipedia.org/wiki/List_of_unit_testing_frameworks#C.2B.2B, 里面有详细的说明。 (该文章用于个人记录)转载 2012-08-26 02:13:30 · 1177 阅读 · 0 评论 -
搭建 gtest + visual studio C++测试环境
1、下载gtest:http://code.google.com/p/googletest/2、编译gtest 解压gtest后,打开msvc目录下的sln文件(可能需要转换版本),然后分别在debug和release模式下直接编译。编译完成后会在/msvc/gtest/debug和/msvc/gtest/relase目录下分别生成gtesd.lib和gtest.lib两个静态库文件原创 2012-10-08 20:13:26 · 2085 阅读 · 0 评论 -
VS 调试环境的配置 (Find Symbol (.pdb),Source, and Binary Files)
MSDN原文链接: http://msdn.microsoft.com/en-us/library/vstudio/ms241613.aspx转载 2013-03-26 13:25:53 · 805 阅读 · 0 评论 -
C++中几种类型的函数指针
1. 一般函数的指针定义int foo(const char *out){ cout << "foo is called: " << out << endl; return strlen(out);}typedef int (FooFunType)(const char*); // 函数的类型别名typedef int (FooFunPointer原创 2013-07-26 11:15:23 · 833 阅读 · 0 评论 -
C++11新特性综述
Scott Meyers Training CoursesAn Overview of the New C++ (C++11/14)Specification of the latest version of C++(“C++11”) was completed in 2011, andmany compilersnow offer a wealth offeatures fr转载 2013-08-29 14:32:36 · 956 阅读 · 0 评论