sparse_set: make capacity virtual
This commit is contained in:
@@ -405,7 +405,7 @@ public:
|
||||
* allocated space for.
|
||||
* @return Capacity of the sparse set.
|
||||
*/
|
||||
[[nodiscard]] size_type capacity() const ENTT_NOEXCEPT {
|
||||
[[nodiscard]] virtual size_type capacity() const ENTT_NOEXCEPT {
|
||||
return reserved.second();
|
||||
}
|
||||
|
||||
|
||||
@@ -415,7 +415,7 @@ public:
|
||||
* allocated space for.
|
||||
* @return Capacity of the storage.
|
||||
*/
|
||||
[[nodiscard]] size_type capacity() const ENTT_NOEXCEPT {
|
||||
[[nodiscard]] size_type capacity() const ENTT_NOEXCEPT override {
|
||||
return bucket.second() * packed_page;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user