Change static const to static constexpr wherever possible

Since we require C++11, most of these consts can be constexpr.

Two `static const ld` remain non-compile-time-evaluable because
they depend on the runtime `log` function. One `static const cld`
remains non-compile-time because `std::complex<T>` doesn't become
constexpr until C++14.
This commit is contained in:
Arthur O'Dwyer committed 2023-08-23 09:47:28 -08:00
1 parent b70b339f52
commit 62629f3e70
48 files changed
+453 -458

No files matched your search

+1 -1
View File
@@ -720,7 +720,7 @@ bool noncrashable(monster *m, monster *by) {
int bulltime[MAXPLAYER];
// set to P_MIRRORWALL to allow the PCs to go through mirrors
static const int reflectflag = P_MIRRORWALL;
static constexpr int reflectflag = P_MIRRORWALL;
void movePlayer(monster *m, int delta) {