mirror of
https://github.com/mpusz/mp-units.git
synced 2025-07-30 02:17:16 +02:00
refactor: 💥 basic_concepts, quantity
and quantity_cast
refactored
BREAKING CHANGE: ScalableNumber renamed to QuantityValue Resolves #107
This commit is contained in:
@ -114,15 +114,13 @@ private:
|
||||
value_type uncertainty_{};
|
||||
};
|
||||
|
||||
static_assert(units::ScalableNumber<measurement<double>>);
|
||||
|
||||
} // namespace
|
||||
|
||||
template<typename T>
|
||||
inline constexpr bool units::treat_as_floating_point<measurement<T>> = std::is_floating_point_v<T>;
|
||||
|
||||
namespace {
|
||||
|
||||
static_assert(units::QuantityValue<measurement<double>>);
|
||||
|
||||
void example()
|
||||
{
|
||||
using namespace units::physical;
|
||||
|
Reference in New Issue
Block a user