Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

base/Timestamp.cc 中的静态断言提示 #399

Closed
kirito41dd opened this issue Jul 23, 2019 · 1 comment
Closed

base/Timestamp.cc 中的静态断言提示 #399

kirito41dd opened this issue Jul 23, 2019 · 1 comment

Comments

@kirito41dd
Copy link

class Timestamp : ...
{
...
privata:
int64_t micro..;
}

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

这个断言的提示信息是不是有问题呀,提示信息不是在前面条件为false才打印么
是不是该提示: size of Timestamp 不等于 int64_t

@chenshuo
Copy link
Owner

chenshuo commented Jul 23, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants