mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-17 23:17:39 +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:
14
landlock.cpp
14
landlock.cpp
@@ -619,13 +619,13 @@ template<class T> void generateLandList(T t) {
|
||||
|
||||
#if HDR
|
||||
namespace lv {
|
||||
static const flagtype appears_in_geom_exp = 1;
|
||||
static const flagtype display_error_message = 2;
|
||||
static const flagtype appears_in_full = 4;
|
||||
static const flagtype appears_in_ptm = 8;
|
||||
static const flagtype display_in_help = 16;
|
||||
static const flagtype one_and_half = 32;
|
||||
static const flagtype switch_to_single = 64;
|
||||
static constexpr flagtype appears_in_geom_exp = 1;
|
||||
static constexpr flagtype display_error_message = 2;
|
||||
static constexpr flagtype appears_in_full = 4;
|
||||
static constexpr flagtype appears_in_ptm = 8;
|
||||
static constexpr flagtype display_in_help = 16;
|
||||
static constexpr flagtype one_and_half = 32;
|
||||
static constexpr flagtype switch_to_single = 64;
|
||||
}
|
||||
|
||||
struct land_validity_t {
|
||||
|
Reference in New Issue
Block a user