refactor: reference::operator() return type constraints improved
This commit is contained in:
1 parent
e61bfafd29
commit
0caf998df1
1 file changed
+1
-1
@@ -53,7 +53,7 @@ struct reference {
|
||||
|
||||
template<RepresentationOf<Q.character> Rep>
|
||||
// TODO can we somehow return an explicit quantity type here?
|
||||
[[nodiscard]] constexpr Quantity auto operator()(Rep&& value) const
|
||||
[[nodiscard]] constexpr std::same_as<quantity<reference{}, Rep>> auto operator()(Rep&& value) const
|
||||
{
|
||||
return quantity<reference{}, Rep>(std::forward<Rep>(value));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user