refactor: derived_kind template parameters reordered to be compatible with a derived_unit
Resolves #229
This commit is contained in:
1 parent
8e88f06380
commit
7ead50acfc
6 files changed
+9
-9
No files matched your search
@@ -151,7 +151,7 @@ static_assert(!equivalent<abscissa::_point_kind_base, horizontal_velocity>);
|
||||
|
||||
struct height : kind<height, dim_length> {};
|
||||
|
||||
struct rate_of_climb : derived_kind<rate_of_climb, height, dim_speed> {}; // program-defined derived kind
|
||||
struct rate_of_climb : derived_kind<rate_of_climb, dim_speed, height> {}; // program-defined derived kind
|
||||
struct velocity_of_climb : point_kind<velocity_of_climb, rate_of_climb> {}; // program-defined derived point kind
|
||||
|
||||
static_assert(Kind<rate_of_climb>);
|
||||
|
||||
@@ -52,8 +52,8 @@ struct radius_kind : kind<radius_kind, dim_length> {};
|
||||
struct width_kind : kind<width_kind, dim_length> {};
|
||||
struct height_kind : kind<height_kind, dim_length> {};
|
||||
|
||||
struct horizontal_area_kind : derived_kind<horizontal_area_kind, width_kind, dim_area> {};
|
||||
struct rate_of_climb_kind : derived_kind<rate_of_climb_kind, height_kind, dim_speed> {};
|
||||
struct horizontal_area_kind : derived_kind<horizontal_area_kind, dim_area, width_kind> {};
|
||||
struct rate_of_climb_kind : derived_kind<rate_of_climb_kind, dim_speed, height_kind> {};
|
||||
|
||||
struct apple : kind<apple, dim_one> {};
|
||||
struct orange : kind<orange, dim_one> {};
|
||||
|
||||
@@ -54,7 +54,7 @@ struct ordinate_kind : point_kind<ordinate_kind, height_kind> {};
|
||||
struct distance_kind : kind<distance_kind, dim_length> {};
|
||||
struct cgs_width_kind : kind<cgs_width_kind, cgs::dim_length> {};
|
||||
struct cgs_height_kind : kind<cgs_height_kind, cgs::dim_length> {};
|
||||
struct rate_of_climb_kind : derived_kind<rate_of_climb_kind, height_kind, dim_speed> {};
|
||||
struct rate_of_climb_kind : derived_kind<rate_of_climb_kind, dim_speed, height_kind> {};
|
||||
struct altitude_kind : point_kind<altitude_kind, cgs_height_kind> {};
|
||||
|
||||
struct apple : kind<apple, dim_one> {};
|
||||
|
||||
Reference in new issue
Block a user