Open ghost opened 2 years ago
Hi, thank you for your feedback.
I indeed forgot to consider the case the same template is used in different translations units leading at a duplication of the same archetype... It doesn't seem trivial to fix either, I'll need a bit of time to find an elegant solution to fix this problem. Off the top of my head, I don't understand why the archetype duplicate doesn't contain the reflected method neither.
The workaround is almost performance-free so I recommand people having this issue to use it until the bug is fixed.
Here is the situation. I have an Engine library (DLL) where I try to reflect the std::vector class. I wanted to use this reflected vector in a Scripting dll driven by an Editor application. (Manipulate and display the vector content in an inspector). The problem is that when I'm trying to declare one in the Scripting dll, double registration warnings show up.
Here is the vector class :
This drives to another problem. When I'm trying to retrieve some methods from the class template instantiation given by the field archetype, methods are not found and are set to null. I bypassed this problem by retrieving the base archetype on the database from the field archetype ID.