Skip to content

Commit

Permalink
Minimal storage class for point constants
Browse files Browse the repository at this point in the history
  • Loading branch information
sparr committed Nov 26, 2024
1 parent becccfa commit 6f2033d
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions src/coordinates.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,68 +289,68 @@ class coord_point_ob : public
// These definitions can go in the class in clang and gcc, and are much shorter there,
// but MSVC doesn't allow that, so...
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob<Point, Origin, Scale>::min =
coord_point_ob<Point, Origin, Scale>( Point::min );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob<Point, Origin, Scale>::max =
coord_point_ob<Point, Origin, Scale>( Point::max );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob<Point, Origin, Scale>::invalid =
coord_point_ob<Point, Origin, Scale>( Point::invalid );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob<Point, Origin, Scale>::zero =
coord_point_ob<Point, Origin, Scale>( Point::zero );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::north
=
coord_point_ob<Point, Origin, Scale>( Point::north );
template<typename Point, origin Origin, scale Scale>
constexpr const coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::north_east
=
coord_point_ob<Point, Origin, Scale>( Point::north_east );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::east
=
coord_point_ob<Point, Origin, Scale>( Point::east );
template<typename Point, origin Origin, scale Scale>
constexpr const coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::south_east
=
coord_point_ob<Point, Origin, Scale>( Point::south_east );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::south
=
coord_point_ob<Point, Origin, Scale>( Point::south );
template<typename Point, origin Origin, scale Scale>
constexpr const coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::south_west
=
coord_point_ob<Point, Origin, Scale>( Point::south_west );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::west
=
coord_point_ob<Point, Origin, Scale>( Point::west );
template<typename Point, origin Origin, scale Scale>
constexpr const coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_rel<Point, Origin, Scale>::north_west
=
coord_point_ob<Point, Origin, Scale>( Point::north_west );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_3d<Point, Origin, Scale>::above
=
coord_point_ob<Point, Origin, Scale>( Point::above );
template<typename Point, origin Origin, scale Scale>
inline constexpr coord_point_ob<Point, Origin, Scale>
const coord_point_ob<Point, Origin, Scale>
coord_point_ob_3d<Point, Origin, Scale>::below
=
coord_point_ob<Point, Origin, Scale>( Point::below );
Expand Down

0 comments on commit 6f2033d

Please sign in to comment.