mirror of
https://github.com/ThePhD/sol2.git
synced 2024-03-22 13:10:44 +08:00
Remove warning for index >=0
This commit is contained in:
parent
4ad97f548e
commit
78dfeedd05
|
@ -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>();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user