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
I believe this code is actually only there to force build failures when the enums don't exist. I'm not quite sure how to fix it, I guess change it to this maybe?
if(AttributeTraits::readable == AttributeTraits::readable) { }
Or would the compiler optimize that out?
Maybe @bofferdn has some thoughts, think he added this way back when.
the idea was to force a compile fail if you tried to write code that wrote an attribute when it's not writeable. The compiler optimizes all that stuff away.
target.H contains some code that checks AttributeTraits, which are enums. With GCC 7 testing an enum cases a warning:
The text was updated successfully, but these errors were encountered: