Remove troublesome ::ratio members

For some reason, MSVC seems to want to instantiate these, even though
nobody ever asks for them (as evidenced by the fact that the builds
passed on other architectures).
This commit is contained in:
Chip Hogg
2022-04-12 00:35:17 +00:00
parent 7a03692e14
commit 78bcb3b019
11 changed files with 16 additions and 19 deletions
+1 -1
View File
@@ -103,7 +103,7 @@ template<Unit U>
std::ostream& operator<<(std::ostream& os, const U& u)
{
using unit_type = std::remove_cvref_t<decltype(u)>;
return os << unit_type::ratio << " x " << unit_type::reference::symbol.standard();
return os << as_ratio(unit_type::mag) << " x " << unit_type::reference::symbol.standard();
}
void what_is_your_ratio()