mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-29 21:13:00 +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:
@@ -20,11 +20,11 @@ struct iring {
|
||||
|
||||
geometry_information *icgi;
|
||||
|
||||
static const int frames = 32;
|
||||
static constexpr int frames = 32;
|
||||
|
||||
static const int cols = 256;
|
||||
static constexpr int cols = 256;
|
||||
|
||||
static const int steps = 2048;
|
||||
static constexpr int steps = 2048;
|
||||
|
||||
array<array<hpcshape, cols>, frames> ptriangle[2];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user