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:
		| @@ -36,11 +36,11 @@ EX vector<bool> legalmoves; | ||||
| EX vector<int> move_issues; | ||||
|  | ||||
| #if HDR | ||||
| static const int miVALID = 10000; | ||||
| static const int miENTITY = 11000; | ||||
| static const int miRESTRICTED = 10100; | ||||
| static const int miTHREAT = 10010; | ||||
| static const int miWALL = 10001; | ||||
| static constexpr int miVALID = 10000; | ||||
| static constexpr int miENTITY = 11000; | ||||
| static constexpr int miRESTRICTED = 10100; | ||||
| static constexpr int miTHREAT = 10010; | ||||
| static constexpr int miWALL = 10001; | ||||
| #endif | ||||
|  | ||||
| EX int checked_move_issue; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Arthur O'Dwyer
					Arthur O'Dwyer