I am trying to declare a constexpr and it throws compilation errors.
static constexpr float goBaseMovementSpeed = (1.135f / 440.f);
Why is this line not working?
error C2144: syntax error : 'float' should be preceded by ';'
error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
goBaseMovementSpeed is a member of a class.
Aucun commentaire:
Enregistrer un commentaire