** 静态断言 ** C++98/C99/C++03 #define assert_static(e) \ do{ \ enum { assert_static__ = 1/(e) }; \ }while(0) C++11 static_assert( sizeof(b) == sizeof(a),“the parameters of a and b must have the same width”);