Refer to class instead

This commit is contained in:
Chip Hogg
2022-01-29 03:47:16 +00:00
parent 408ad16528
commit 9593ca04d7

View File

@@ -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.