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:
1 parent
7a03692e14
commit
78bcb3b019
11 files changed
+16
-19
No files matched your search
@@ -72,8 +72,8 @@ struct equivalent_impl<D1, D2> :
|
||||
// additionally accounts for unknown dimensions
|
||||
template<Unit U1, Dimension D1, Unit U2, Dimension D2>
|
||||
struct equivalent_unit :
|
||||
std::disjunction<equivalent_impl<U1, U2>, std::bool_constant<U1::ratio / dimension_unit<D1>::ratio ==
|
||||
U2::ratio / dimension_unit<D2>::ratio>> {};
|
||||
std::disjunction<equivalent_impl<U1, U2>,
|
||||
std::bool_constant<U1::mag / dimension_unit<D1>::mag == U2::mag / dimension_unit<D2>::mag>> {};
|
||||
|
||||
// point origins
|
||||
|
||||
|
||||
@@ -151,14 +151,14 @@ constexpr auto unit_text()
|
||||
// use predefined coherent unit symbol
|
||||
constexpr auto symbol_text = coherent_unit::symbol;
|
||||
constexpr auto prefix_txt =
|
||||
prefix_or_ratio_text<U::ratio / coherent_unit::ratio, typename U::reference::prefix_family,
|
||||
prefix_or_ratio_text<as_ratio(U::mag / coherent_unit::mag), typename U::reference::prefix_family,
|
||||
symbol_text.standard().size()>();
|
||||
return prefix_txt + symbol_text;
|
||||
} else {
|
||||
// use derived dimension ingredients to create a unit symbol
|
||||
constexpr auto symbol_text = derived_dimension_unit_text<Dim>();
|
||||
constexpr auto prefix_txt =
|
||||
prefix_or_ratio_text<U::ratio / coherent_unit::ratio, typename U::reference::prefix_family,
|
||||
prefix_or_ratio_text<as_ratio(U::mag / coherent_unit::mag), typename U::reference::prefix_family,
|
||||
symbol_text.standard().size()>();
|
||||
return prefix_txt + symbol_text;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user