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 committed 2022-04-12 00:35:17 +00:00
1 parent 7a03692e14
commit 78bcb3b019
11 files changed
+16 -19

No files matched your search

+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()
+1 -1
View File
@@ -96,7 +96,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()