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

There are a few syntax _errors_ in include/version.hpp ``` #if defined(SOL_COMPILER_CLANG) #if defined(SOL_COMPILER_CLANG != 0) ``` which should be ``` #if defined(SOL_COMPILER_CLANG) #if (SOL_COMPILER_CLANG != 0) ``` Also, while reviewing...

I'm having the following project structure: ``` exe => lua-5.4.6 (static .lib) => lua-base (dynamic .dll) -> Includes sol and defines a bunch of usertypes with base/derived classes => class...

Hi, I met with a problem when using sol with box2d. Box2d has a class called b2Vec2, and I want to set an entry of a table to a b2Vec2....

Accessing table field with the wrong user type causes a segmentation fault. ### Context Language: `C++` Sol Version: `3.3.0` Defines: `SOL_ALL_SAFETIES_ON`, `SOL_USE_CXX_LUA` ### Reproduction [Godbolt](https://godbolt.org/z/bovsYznWz), which doesn't can't use `SOL_USE_CXX_LUA`....

Trying to build on intel mac with cmake , got error while configure project. ``` CMake Warning: Ignoring extra path from command line: "/Users/sanju/PROJECTS/sol2_build" CMake Warning: Ignoring extra path from...

I attached a reproduction example to the ticket: [main.cpp.txt](https://github.com/ThePhD/sol2/files/14865563/main.cpp.txt) The example crashes during the `m_entries.clear();` in the `~MyDynamic()` destructor. The crash only occurs if the `test()` function is started as...

Some programming languages offer the possibility of out-parameters, aka where the user can pass in arguments as reference to a function, inside the function the value gets modified via reference...

I'm uncertain if this is the place for questions, but I might be doing something wrong and this might not be a bug with Sol2 at all. What's happening is...

I'd like to expose a const container (here it happens to be a `std::vector`) to Lua via Sol, so it can be iterated/accessed there but not modified. I thought that...

Fixes some Cmake issue introduced in [3592851a2a180a84b3149ddeae258c79c7e60e6e](https://github.com/ThePhD/sol2/commit/3592851a2a180a84b3149ddeae258c79c7e60e6e)