Skip to content

WHY????????Why not make corrections?? @ShepherdSoasis @ThePhD #1718

@scriptkitz

Description

@scriptkitz

@ShepherdSoasis
@ThePhD

WHY???????????

Check this #1511

include/sol/usertype_container.hpp

			template <bool ip>
			static int next_associative(std::true_type, lua_State* L_) {
				iter& i = stack::unqualified_get<user<iter>>(L_, 1);
				auto& it = i.it();
1192:			    auto& end = i.end();       <-------------HERE   Should it be sen()?
				if (it == end) {
					return stack::push(L_, lua_nil);
				}

....

			template <bool>
			static int next_associative(std::false_type, lua_State* L_) {
				iter& i = stack::unqualified_get<user<iter>>(L_, 1);
				auto& it = i.it();
1213:			    auto& end = i.sen();       <--------------HERE
				next_K k = stack::unqualified_get<next_K>(L_, 2);
				if (it == end) {
					return stack::push(L_, lua_nil);
				}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions