mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-07 06:04:27 +02:00
Refer to class instead
This commit is contained in:
@@ -363,7 +363,7 @@ concept Magnitude = detail::is_magnitude<T>;
|
|||||||
* Can avoid the need for an unsightly `.template` keyword.
|
* Can avoid the need for an unsightly `.template` keyword.
|
||||||
*/
|
*/
|
||||||
template<typename T>
|
template<typename T>
|
||||||
T get_value(Magnitude auto m) { return m.template value<T>; }
|
T get_value(Magnitude auto m) { return decltype(m)::template value<T>; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief A base to represent pi.
|
* @brief A base to represent pi.
|
||||||
|
Reference in New Issue
Block a user