ThePhD / sol2

Sol3 (sol2 v3.0) - a C++ <-> Lua API wrapper with advanced features and top notch performance - is here, and it's great! Documentation:
http://sol2.rtfd.io/
MIT License
4.18k stars 515 forks source link

Automatic container wrapper is not working in devel branch #1627

Open dazboga opened 2 weeks ago

dazboga commented 2 weeks ago

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

deadlocklogic commented 17 hours ago

@ThePhD This is a replication of the tests/runtime_tests/container_semantics.cpp and it fails to compile using the trunk branch. Is CI/CL working correctly?