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.12k stars 500 forks source link

table::get_or returns null instead of second argument for raw pointer usertypes #1421

Open Bobini1 opened 1 year ago

Bobini1 commented 1 year ago
  1. Produce a simple, short, compilable test case that reproduces your problem. https://godbolt.org/z/zEdqs336o
  2. Make a descriptive title that summarises the bug as a whole. Done.
  3. Explain the bug in as much detail as you can in the body of the issue. I think the title explains most of it. By "raw pointer usertypes" I mean usertypes that only have factories producing raw pointers. You can see my use case in the Compiler Explorer example.
  4. Include Compiler/IDE (Visual Studio, XCode...), Build and Deployment System, Language (C++, Objective-C++), and any special defines you have set. I'm using g++ on Linux with CMake.