阅读背景:

C ++静态初始化vs __attribute __((构造函数))

来源:互联网 

Example:

struct Foo { Foo() { printf("foo\n"); } };
static Foo foo;

__attribute__((constructor)) static void _bar() { printf("bar\n"); }
struct Foo { Foo() { printf("foo\n")



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: