fix: runtime view (#108)

This commit is contained in:
Michele Caini
2018-07-02 08:40:30 +02:00
parent 10a7c54364
commit ddc0a32bbc
2 changed files with 2 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ endif()
# Project configuration
#
project(entt VERSION 2.6.1)
project(entt VERSION 2.7.1)
include(GNUInstallDirs)

View File

@@ -1675,7 +1675,7 @@ class RuntimeView {
: pools{std::move(others)}
{
const auto it = std::min_element(pools.begin(), pools.end(), [](const auto *lhs, const auto *rhs) {
return !lhs || (rhs && (lhs->size() < rhs->size()));
return (!lhs && rhs) || (lhs && rhs && lhs->size() < rhs->size());
});
// brings the best candidate (if any) on front of the vector