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
trafficstars

``` lua_state.new_usertype("vector", sol::constructors (), "x", &Vector_t::x, "y", &Vector_t::y, "z", &Vector_t::z ); local vec = vector.new(0,0,0); -- attempt to call field 'new' (a nil value) ```

I am trying to create coroutines/threads in C++ but I cannot get it working when using C++ functions vs `load` method with custom string: ```lua hello_fn = get_entity_value("e2", "hello") ```...

I have a function with multiple overloads. And I hope I can convert one of the parameters from custom type. ```cpp void foo(int i); void foo(int i, int j); class...

**Versions:** - sol 3.3.1 - luajit 2.1.0-beta3 **Problem:** When requiring "compat53" module when LuaJIT is used, I get a curious error. **Output**: ```console $ ./build/Debug/sol_compat53 [sol2] An error occurred and...

Use for iterator lua tab in c++ leadto Segmentation fault, But other two style for run ok (note the for iterator) SOL: 3.3.0 LUA:5.2.4 std c++: gcc version 9.4.0 (Ubuntu...

It's still not compiling until the end but I got farther thanks to these changes. There is still an issue: `aguya.cpp:51:16: error: ‘kaguya’ has not been declared`.

Hello, here I am again! And this time with a Phd test case, [ThePhd.h.txt](https://github.com/ThePhD/sol2/files/12139675/ThePhd.h.txt) ``` /* SPDX-FileCopyrightText: 2023 Ondrej Popp SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include #define SOL_ALL_SAFETIES_ON...

Note: it is not a duplicate of #700 **sol version:** 3.3.0 **Lua version:** 5.4.4 **Compiler:** ~~Fedora 38 clang 16.0.0~~ / Windows 11 clang 16.0.0, target: x86_64-pc-windows-msvc **Complete test case:** https://github.com/ThePhD/sol2/issues/1532#issuecomment-1738995821...

like this, in my lua sctipt ```lua for i = 1, 1000 do local obj = MyObject.new() end ``` I want to execute the deconstructor of MyObject every loop to...

I am trying to use the ADL customization points to turn a Lua table to a custom type using the `get()` syntax. For getting a single value, it works as...