Downcasting reworked to allow OFF and AUTO modes

This commit is contained in:
Mateusz Pusz
2020-05-08 10:50:34 +02:00
parent 12c0177633
commit 5c98924efb
24 changed files with 386 additions and 216 deletions
+1 -1
View File
@@ -27,7 +27,7 @@
namespace {
template<units::Quantity Target, units::Quantity Source>
requires units::equivalent_dim<typename Source::dimension, typename Target::dimension>
requires units::equivalent<typename Source::dimension, typename Target::dimension>
inline constexpr std::common_type_t<typename Target::rep, typename Source::rep> conversion_factor(Target, Source)
{
// get quantities looking like inputs but with Q::rep that doesn't have narrowing conversion