template<bool> struct CompileTimeError;
template<> struct CompileTimeError<true>{};


#define STATIC_ASSERT(expr) \
    CompileTimeError<(expr)>()


相关文章:

  • 2022-02-06
  • 2022-12-23
  • 2022-12-23
  • 2022-02-27
  • 2022-03-10
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
猜你喜欢
  • 2021-07-14
  • 2022-12-23
  • 2022-12-23
  • 2021-07-04
  • 2021-11-16
  • 2022-01-17
相关资源
相似解决方案