template struct CompileTimeError;template<> struct CompileTimeError{};#define STATIC_ASSERT(expr) \CompileTimeError<(expr)>()
转:https://www.cnblogs.com/xinyuyuanm/archive/2013/03/28/2987682.html