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
According to the documentation: "User defined identifiers are allowed as enum classes and class types that define an entity_type member of type std::uint32_t or std::uint64_t."
I'm quite a beginner when it comes to C++ so I don't really understand what this means. In the faq the example given is:
enum class entity: std::uint32_t {};
What would a valid example look like for a custom entity that is not an enum class, but a regular class?
I'm trying to make it work with the following class:
According to the documentation: "User defined identifiers are allowed as enum classes and class types that define an entity_type member of type
std::uint32_t
orstd::uint64_t
."I'm quite a beginner when it comes to C++ so I don't really understand what this means. In the faq the example given is:
What would a valid example look like for a custom entity that is not an enum class, but a regular class?
I'm trying to make it work with the following class:
This is obviously not correct since it raises the error
But I don't understand what has to be constant here. Sorry if this has been asked before but I couldn't quite find it.
The text was updated successfully, but these errors were encountered: