Add DynamicPoint
- Add
DynamicPoint
class (runtime dimension) ininclude/diy/dynamic-points.hpp
- Switch
Bounds
to useDynamicPoint
- Mark
Bounds::Bounds()
as deprecated and fix all its uses - Switch
Direction
to useDynamicPoint
- Mark
Direction::Direction(int dir)
as deprecated (in favor ofDirection::Direction(int dim, int dir)
) - Change the behavior of
Direction::Direction()
(initializing to 0-dimensional direction). This one is dangerous, but I don't see any other way. We need to default constructor inSerialization
, so we can't just mark it as deprecated. But keeping the old behavior (initializing toDIY_MAX_DIM
dimensions) is also undesirable. Although the latter would be a safer option: it wouldn't break old code, as far as I can tell.
@tpeterka It's ready for your review.