fix couple warnings, use stable version ofg googletest

This commit is contained in:
greg
2021-02-01 21:38:52 -05:00
parent 9f6f49a965
commit 118e56fb7f
3 changed files with 12 additions and 12 deletions
+2 -2
View File
@@ -3184,8 +3184,8 @@ public:
}
float load_factor() const {
size_t capacity = bucket_count();
return capacity ? static_cast<float>(static_cast<double>(size()) / capacity) : 0;
size_t _capacity = bucket_count();
return _capacity ? static_cast<float>(static_cast<double>(size()) / _capacity) : 0;
}
float max_load_factor() const { return 1.0f; }