Remove warning for index >=0

This commit is contained in:
Philipp Wissmann 2024-03-05 11:32:59 +01:00
parent 4ad97f548e
commit 78dfeedd05

View File

@ -59,7 +59,7 @@ inline namespace sol2_regression_test_coroutines_array_proxy_lifetime {
value_type operator*() const { value_type operator*() const {
size_t size = a.mpParent.children.size(); size_t size = a.mpParent.children.size();
if (index >= 0 && index < size) { if (index < size) {
return a.mpParent.children[index]; return a.mpParent.children[index];
} }
return std::weak_ptr<A>(); return std::weak_ptr<A>();