refactor: 💥 basic_concepts, quantity and quantity_cast refactored

BREAKING CHANGE:  ScalableNumber renamed to QuantityValue

Resolves #107
This commit is contained in:
Mateusz Pusz
2020-10-06 18:17:52 +02:00
parent 40f205b381
commit cfc90f4aac
96 changed files with 1620 additions and 1017 deletions

View File

@ -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;