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

Rebinding a usertype doesn't work anymore #1447

Open gotschmarcel-ni opened 1 year ago

gotschmarcel-ni commented 1 year ago

It might be a strange use-case, but I noticed that rebinding a usertype doesn't work with 3.3.0, even though it did in 3.2.1. Is this a bug or an intentional change?

Here's a working 3.2.1: https://godbolt.org/z/4z1jr98PY Here's a broken trunk: https://godbolt.org/z/3sTc5ETM5 (this uses trunk, but I tested that this behavior also occurs with 3.3.0)

roman-orekhov commented 1 year ago

Related report #1492