zenorogue / hyperrogue

A SDL roguelike in a non-euclidean world
GNU General Public License v2.0
554 stars 66 forks source link

Change `static const` to `static constexpr` wherever possible #343

Closed Quuxplusone closed 9 months ago

Quuxplusone commented 11 months ago

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.