mirror of
https://github.com/mpusz/mp-units.git
synced 2026-02-07 07:44:32 +01:00
refactor: Repetitive inline constexpr removed as no longer needed
Not needed anymore as stated in cplusplus/draft#4601
This commit is contained in:
@@ -44,7 +44,7 @@ import mp_units;
|
||||
// types instead of requiring the usage of Linear Algebra library for this simple example
|
||||
template<class T>
|
||||
requires mp_units::is_scalar<T>
|
||||
inline constexpr bool mp_units::is_vector<T> = true;
|
||||
constexpr bool mp_units::is_vector<T> = true;
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -58,8 +58,8 @@ QUANTITY_SPEC(horizontal_length, isq::length);
|
||||
// with a constrained quantity equation
|
||||
QUANTITY_SPEC(horizontal_area, isq::area, horizontal_length* isq::width);
|
||||
|
||||
inline constexpr auto g = 1 * si::standard_gravity;
|
||||
inline constexpr auto air_density = isq::mass_density(1.225 * kg / m3);
|
||||
constexpr auto g = 1 * si::standard_gravity;
|
||||
constexpr auto air_density = isq::mass_density(1.225 * kg / m3);
|
||||
|
||||
class StorageTank {
|
||||
quantity<horizontal_area[m2]> base_;
|
||||
|
||||
Reference in New Issue
Block a user