view: check the index directly before invoking ::each
This commit is contained in:
@@ -585,7 +585,7 @@ public:
|
||||
*/
|
||||
template<typename Func>
|
||||
void each(Func func) const {
|
||||
if(base_type::handle() != nullptr) {
|
||||
if(this->index != sizeof...(Get)) {
|
||||
pick_and_each(func, std::index_sequence_for<Get...>{});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user