xo-unit: choose appropriate 2x-width in Quantity template

This commit is contained in:
Roland Conybeare 2024-04-28 15:59:42 -04:00
commit 85a25b6fb6

View file

@ -26,7 +26,7 @@ namespace xo {
**/
template <typename Repr = double,
typename Int = std::int64_t,
typename Int2x = __int128_t>
typename Int2x = detail::width2x_t<Int>>
class Quantity {
public:
using repr_type = Repr;