mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-30 20:44:30 +00:00
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:
1 parent
b70b339f52
commit
62629f3e70
48 files changed
+453
-458
No files matched your search
+1
-1
@@ -20,7 +20,7 @@ EX namespace polygonal {
|
||||
#endif
|
||||
|
||||
#if HDR
|
||||
static const int MSI = 120;
|
||||
static constexpr int MSI = 120;
|
||||
#endif
|
||||
|
||||
typedef long double xld;
|
||||
|
||||
Reference in new issue
Block a user