Open yakra opened 4 years ago
Arguments
can be cleaned up
Apparently I can only do this with integral types? OK...
HGEdge
format constantsWaypoint::pi
#define
d insteadArguments
has enough non-integral types (strings) that the cleanest solution is to leave as-is.region_hash
a static member of region
WRT the above comment and finding other variables in main or wherever to put in a class, those can be done as I notice them. No need to go searching.
WRT the OP, seems only const values work (search "Constant static members").
GraphListEntry::num
must stay as-is, right?All items specifically mentioned are addressed, or no-build. Only other thing that matches the OP might be...
DBFieldlength
would be perfect for this. Could do away with the .cpp file entirely. Variables would probably be constexpr (links: demystifying / when to use)?HGEdge
consts were constexpr, would it compile differently?
Static variables can be defined within a class definition; doesn't have to be later.