diff --git a/src/include/units/concepts.h b/src/include/units/concepts.h index 6a6da384..028ba9e1 100644 --- a/src/include/units/concepts.h +++ b/src/include/units/concepts.h @@ -185,6 +185,13 @@ auto default_unit() */ template using dimension_unit = decltype(detail::default_unit()); +// TODO: replace with the below code when VS catches up +// decltype([]{ +// if constexpr (BaseDimension) +// return TYPENAME D::base_unit{}; +// else +// return TYPENAME D::coherent_unit{}; +// }()); /** * @brief A concept matching only units of a specified dimension.