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

**sol version:** https://github.com/AshitaXI/sol2/commit/d4b13ff864c94b0154ec89b2b7332152babbaac4 (Also tested with develop.) **Lua version:** MoonJit via https://github.com/AshitaXI/moonjit/commit/094d971c0a9f76025e2c61fab65969aea7fdb753 **Compiler version:** VS2022 17.0.1 (Using C++20 /std:c++latest) **Issue Description:** While using traverse_get, sol does not honor 'deep'/'named' tables...

A usertype declared with `sol::no_constructor` still has a constructor function in Lua, see the godbolt example: https://godbolt.org/z/oaoeYo3Gn. Might be intentional, but prohibits users to use this key for something else.

Help.Desk

First of all, thank you for all of your great work on sol2 and the C and C++ standards committees! My problem is that I don't know how to catch...

I would have a use for the equivalent of `tostring` in C++ code that doesn't just work on usertypes, but on builtin types, too. Rather than going through Lua, wouldn't...

Hello, I had asked this question before, but I think it might have been removed since it was probably considered easy to do. For the future I'd love to know...

I have inherited a code that uses Lua's C-API to expose a C function `int some_function(lua_State *L)`. I am trying to refactor the code to use Sol2 but I would...

Consider the following: ``` #include #include int main() { std::printf("sol: %s\n", SOL_VERSION_STRING); sol::state L; L.open_libraries(); struct X {}; auto x = L.new_usertype("X"); int v = 1; x["v"] = sol::var(std::ref(v)); //...

Consider the following: ``` #include #include struct X { static inline int v = 1; static void set_var(int value) { X::v = value; } static int get_var() { return X::v;...

Exposing a usertype via a custom pointer class forces the usertype to implement all comparison operators, if the custom pointer class provides them. The code that triggers this is [usertype_core.hpp:132](https://github.com/ThePhD/sol2/blob/develop/include/sol/usertype_core.hpp#L132)....

Hello, users of sol2! This issue was made so that I could get a better idea of what you all use for Lua and how much you like / dislike...

Documentation
Thank.You
Help.Me!