Closed rpatters1 closed 1 year ago
Just stop at beginClass for the assignment.
The addXXX methods returns a reference, call them once you have a class object.
auto c = ...beginClass();
c.addConstructor();
AddMethods(c);
c.endClass();
That fixed it.
A recent change to LB3 has caused my code not to compile. Specifically, it fails because the copy constructors have been deleted from the registration classes.
I have code that builds up each class with repeated calls using the
refl-cpp
reflection framework for C++. The function signature for the function that registers the methods and properties is:The code that creates the class does this:
The deleted copy constructors mean the assignment of
bridgeClass
fails to compile. I modified the code as follows (after examining the LB3 changes) to use && references:Now the code compiles, but when I run it,
assertStackState
fails on line 959 of Namespace.h.