Commit Graph

3 Commits

Author SHA1 Message Date
Kevin Granade c5ccf0c2c7 IWYU for tests (#42806) 2020-08-09 09:46:57 +03:00
Kevin Granade 6d1841ac67 Precompiled Catch2 header (#42453)
* Hoist catch.hpp include to the top of files

* Precompile the catch header in tests
2020-07-29 01:28:26 +03:00
John Bytheway f97a8476a8 Genericise simple_pathfinding (#41946)
The current simple_pathfinding implementation only works for point.  We
want it to word for the various type-safe point types also.  Make the
point type a template parameter to that end.

Because point and coord_point require their members to be accessed in
different ways (p. vs p.x()) this entails introducing a point_traits
helper to dispatch to the correct access type.

Also added a simple pathfinding test.
2020-07-11 07:20:58 +00:00