From dba2b7f44fa3190a260a1a310b7e14312c6c6af7 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Tue, 8 Sep 2020 23:00:00 +0200 Subject: [PATCH] docs: TODO added The suggested code still is not supported by the latest available VS version --- src/include/units/concepts.h | 7 +++++++ 1 file changed, 7 insertions(+) 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.