You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Today, as usual, I worked on a hobbyist game that I use reflect-cpp to work on. But today, after adding some values to an enum class, I got an error which is hard to copy.
The main error in MSVC reads: C1202 recursive type or function dependency context too complex
In a nutshell, it looks like there's something wrong in the function internal::no_duplicate_field_names in the file rfl\internal\no_duplicate_field_names.hpp.
Unfortunately, I had a hard time mapping the same problem in an extracted project using the same structures (which was no easy task), which makes the bug look all the more like the one from the WTF cycle
Below I attach the code I managed to extract from the main project, but I can't get the same error on it
The value of this element was 33 (if this helps anything)
I understand that this error may be due to a very complex structure and there are limitations here due to the compiler's capabilities, I don't expect the problem to be easy to fix (if at all possible), but I wanted to share my take.
Cheers
The text was updated successfully, but these errors were encountered:
Hi
Today, as usual, I worked on a hobbyist game that I use reflect-cpp to work on. But today, after adding some values to an enum class, I got an error which is hard to copy.
The main error in MSVC reads:
C1202 recursive type or function dependency context too complex
In a nutshell, it looks like there's something wrong in the function
internal::no_duplicate_field_names
in the file rfl\internal\no_duplicate_field_names.hpp.Unfortunately, I had a hard time mapping the same problem in an extracted project using the same structures (which was no easy task), which makes the bug look all the more like the one from the WTF cycle
Below I attach the code I managed to extract from the main project, but I can't get the same error on it
Code
A quick bugfix for this situation was to comment out 2 lines of a piece of code:
or comment last element in
enum class Attribute
:The value of this element was 33 (if this helps anything)
I understand that this error may be due to a very complex structure and there are limitations here due to the compiler's capabilities, I don't expect the problem to be easy to fix (if at all possible), but I wanted to share my take.
Cheers
The text was updated successfully, but these errors were encountered: