sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

compilation failure: error: ‘struct sol::container_detail::usertype_container_default<....>::iter’ has no member named ‘end’

Open etorth opened this issue 6 months ago • 1 comments

using sol 3.5.0, sol2/include/sol/usertype_container.hpp, line 1192:

1188                         template <bool ip>
1189                         static int next_associative(std::true_type, lua_State* L_) {
1190                                 iter& i = stack::unqualified_get<user<iter>>(L_, 1);
1191                                 auto& it = i.it();
1192                                 auto& end = i.end(); // <--- this line
1193                                 if (it == end) {
1194                                         return stack::push(L_, lua_nil);
1195                                 }

etorth avatar May 12 '25 14:05 etorth

See pull request #1676

s13n avatar May 12 '25 15:05 s13n