sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:

Results 286 sol2 issues
Sort by recently updated
recently updated
newest added

Hi, I found a function where `noexcept` breaks catching because an exception can actually occur. As example: `basic_table_iterator& operator++() noexcept` shouldn't be `noexcept` because `lua_next` in LuaJIT [can throw an...

Enabling tests/examples when using an installed version of Lua results in ``` CMake Error at examples/CMakeLists.txt:26 (target_link_libraries): Target "..." links to: Lua::Lua but the target was not found. Possible reasons...

On linux, the linker argument in the generated link.txt files corresponding to lualib's INTERFACE_LINK_LIBRARIES resolves to " dl" instead of -ldl

https://github.com/ThePhD/sol2/blob/c1f95a773c6f8f4fde8ca3efe872e7286afe4444/include/sol/stack_push.hpp#L691-L694 This code will not compile because `metatable_key_t` doesn't have subscript method.

``` [build] build/_deps/sol-src/include/sol/optional_implementation.hpp:2194:31: error: 'class sol::optional' has no member named 'construct' [-Wtemplate-body] [build] 2194 | this->construct(std::forward(args)...); ``` seems like the fix is already on the 3.5.0 tag: d805d027e0a0a7222e936926139f06e23828ce9f yet it's...

Thanks a lot for this amazing library! With sol2, you can query the metatable of tables and table proxys using `my_table[sol::metatable_key]`. Is there any way to query the metatable of...

It seems that the compatibility layer for Lua 5.3 is required. In a few places, Sol does not take advantage of that and uses separate C API calls. This PR...

From the python documentation, calls to ```os.popen()``` return a file object connected to a pipe. A *ResourceWarning* is created when the returned file object is not closed. The fix is...

i need to change this to be able to compile. i'm using g++-14 on debian linux

[`documentation/source/api/proxy.rst`](https://github.com/ThePhD/sol2/blob/develop/documentation/source/api/proxy.rst?plain=1) line 115 `unsage_function_result`, should say `unsafe_function_result`