Also:
- changed pf::node to use typesafe direction and renamed to
pf::directed_node
- replaced the functor with std::function and the estimator return
with node_score
- fix unit test
Catch2 provides a customization point for converting our types to
strings by specializing the StringMaker template.
We have some specializations in stringmaker.h, but this feature was only
working intermittently. I finally figured out that was due to an ODR
violation. The test files that didn't include stringmaker.h were
compiling a different specialization than the ones that did.
Re-jig the test includes so that any file including catch.hpp also
includes stringmaker.h, thereby ensuring that the custom
specializations are used everywhere and there is no ODR violation.
I achieved this by adding a new cata_catch.h header and making all
existing headers include catch.hpp via the new header.
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.