sol2 icon indicating copy to clipboard operation
sol2 copied to clipboard

Automatic container wrapper is not working in devel branch

Open dazboga opened this issue 1 year ago • 1 comments

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 ff3f254f7b47cfc8cf2976368d86f4cd726915ec

However it looks like commit 64e3823bd200913d3e92123cbb2e76d9ec377d3e breaks the default container wrapper.

Simple example:

#include <map>
#include <sol/sol.hpp>


int main() {
    std::map<std::string, bool> m;

    sol::state state;
    state["m"] = m;
}

System: linux, clang, luajit

Output: output.log

dazboga avatar Sep 13 '24 12:09 dazboga