mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-04 04:44:27 +02:00
docs: TODO added
The suggested code still is not supported by the latest available VS version
This commit is contained in:
@@ -185,6 +185,13 @@ auto default_unit()
|
|||||||
*/
|
*/
|
||||||
template<Dimension D>
|
template<Dimension D>
|
||||||
using dimension_unit = decltype(detail::default_unit<D>());
|
using dimension_unit = decltype(detail::default_unit<D>());
|
||||||
|
// TODO: replace with the below code when VS catches up
|
||||||
|
// decltype([]{
|
||||||
|
// if constexpr (BaseDimension<D>)
|
||||||
|
// return TYPENAME D::base_unit{};
|
||||||
|
// else
|
||||||
|
// return TYPENAME D::coherent_unit{};
|
||||||
|
// }());
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A concept matching only units of a specified dimension.
|
* @brief A concept matching only units of a specified dimension.
|
||||||
|
Reference in New Issue
Block a user