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

Hey, This PR enables move and copy assignment of `sol::variadic_results`. Currently the move and copy assignment is implicitly deleted because `sol::basic_variadic_results` declares a move constructor with `= default`. Such declaration...

1. What is this pain 2. Lol ```c++ #if SOL_IS_ON(SOL_INSIDE_UNREAL_ENGINE_I_) #ifdef check #pragma push_macro("check") #undef check #endif #endif // Unreal Engine 4 Bullshit #if SOL_IS_ON(SOL_COMPILER_GCC_I_) #pragma GCC diagnostic push #pragma...

Hi, and thanks for this great library. Just a question more than an issue: Will this project ever have a comeback, a roadmap? I am not necessarily implying the implementation...

Closes #1627. Notice that the unit tests **passed** before this fix **unexpectedly**, see the related open issue.

I tried develop branch because there is a fix for passing nil from lua to C function expecting shared_ptr (or sol::object) using luajit as VM. It is fixed in commit...

Compiler: g++ (GCC) 14.2.1 20240805 Using `sol::policies` around `sol::overload` results in the function arguments missing from the stack when it gets to the policy function. Using `sol::overload` around `sol::policies` results...

Why we can't pass `nil` to `std::shared_ptr` without registering a new overload. This behavior used to work previously according to my old tests, not anymore. Consider [this example](https://godbolt.org/z/seq1xYrnY): ```C++ #define...

#### The problem: Currently (in sol2 version 3.3.0) there is no way to use `sol::environment` and `lua_Reader` together. `sol::state::safe_script` doesn't have an overload that can accept both, and `sol::set_environment` doesn't...

Allows code like the following to work: ```cpp std::string_view pretty_name = my_table["pretty_name"]; ``` Otherwise it fails with: ``` error: conversion from ‘sol::table_proxy’ to non-scalar type ‘std::string_view’ {aka ‘std::basic_string_view’} requested 2131...

I have a usertype which is dynamically supplied by the user in a REPL. I would like to be able to show them the functions they can invoke on the...