chenshuo / muduo

Event-driven network library for multi-threaded Linux server in C++11
https://github.com/chenshuo/muduo
Other
14.71k stars 5.15k forks source link

Timestamp.cc文件中静态断言 #486

Closed leaf-potato closed 3 years ago

leaf-potato commented 3 years ago

Timestamp.cc文件中的静态断言:

static_assert(sizeof(Timestamp) == sizeof(int64_t),"Timestamp is same size as int64_t");

我想问一下静态断言失败的话,不应该是Timestamp is not same size as int64_t吗?

chenshuo commented 3 years ago

See #399 .