diff --git a/example/capacitor_time_curve.cpp b/example/capacitor_time_curve.cpp index 57ee3790..2a5d99da 100644 --- a/example/capacitor_time_curve.cpp +++ b/example/capacitor_time_curve.cpp @@ -40,7 +40,7 @@ int main() constexpr auto R = isq::resistance(4.7 * si::kilo); for (auto t = 0 * ms; t <= 50 * ms; ++t) { - const QuantityOf auto Vt = V0 * exp(-t / (R * C)); + const QuantityOf auto Vt = V0 * exp(dimensionless(-t / (R * C))); std::cout << "at " << t << " voltage is "; diff --git a/example/measurement.cpp b/example/measurement.cpp index 52f68376..7bb17a01 100644 --- a/example/measurement.cpp +++ b/example/measurement.cpp @@ -30,14 +30,14 @@ namespace { -template +template class measurement { public: using value_type = T; measurement() = default; - constexpr explicit measurement(const value_type& val, const value_type& err = {}) : value_(val) + constexpr explicit measurement(value_type val, const value_type& err = {}) : value_(std::move(val)) { // it sucks that using declaration cannot be provided for a constructor initializer list using namespace std;