Skip to content

Commit 112051b

Browse files
committed
Add friend to d128_fast
1 parent fbfe630 commit 112051b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/boost/decimal/decimal128_fast.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,10 @@ class decimal128_fast final
123123

124124
friend constexpr auto not_finite(const decimal128_fast& val) noexcept -> bool;
125125

126+
template <typename DecimalType>
127+
friend constexpr auto to_dpd_d128(DecimalType val) noexcept
128+
BOOST_DECIMAL_REQUIRES_RETURN(detail::is_decimal_floating_point_v, DecimalType, detail::uint128);
129+
126130
public:
127131
constexpr decimal128_fast() noexcept = default;
128132

0 commit comments

Comments
 (0)