refactor: 💥 basic_concepts, quantity and quantity_cast refactored
BREAKING CHANGE: ScalableNumber renamed to QuantityValue Resolves #107
This commit is contained in:
1 parent
40f205b381
commit
cfc90f4aac
96 files changed
+1620
-1017
No files matched your search
@@ -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