Merge pull request #2 from deximy/master

Sync
This commit is contained in:
deximy 2020-07-19 01:07:17 +08:00 committed by GitHub
commit 834d6c79a0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -100,7 +100,7 @@ auto ep = static_cast<float>(calEpsilon());
````cpp ````cpp
int index = d * c.size(); int index = d * c.size();
```` ````
但是这种写法并没有明确表明你想double类型转换成int类型显式类型初始器可以帮助你正确表意 但是这种写法并没有明确表明你想将右侧的double类型转换成int类型显式类型初始器可以帮助你正确表意
````cpp ````cpp
auto index = static_cast<int>(d * size()); auto index = static_cast<int>(d * size());
```` ````