Skip to content

Commit cd1e650

Browse files
authored
Merge pull request #849 from cppalliance/bool_const
Remove decimal32 bool constructor
2 parents e02d08a + 3e5e646 commit cd1e650

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

include/boost/decimal/decimal32.hpp

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -285,13 +285,6 @@ BOOST_DECIMAL_EXPORT class decimal32 final // NOLINT(cppcoreguidelines-special-m
285285
#endif
286286
constexpr decimal32(T coeff, T2 exp, bool sign = false) noexcept;
287287

288-
#ifdef BOOST_DECIMAL_HAS_CONCEPTS
289-
template <BOOST_DECIMAL_INTEGRAL T>
290-
#else
291-
template <typename T, std::enable_if_t<detail::is_integral_v<T>, bool> = true>
292-
#endif
293-
constexpr decimal32(bool coeff, T exp, bool sign = false) noexcept;
294-
295288
constexpr decimal32(const decimal32& val) noexcept = default;
296289
constexpr decimal32(decimal32&& val) noexcept = default;
297290
constexpr auto operator=(const decimal32& val) noexcept -> decimal32& = default;
@@ -1557,16 +1550,6 @@ constexpr auto decimal32::operator=(const Integer& val) noexcept
15571550
return *this;
15581551
}
15591552

1560-
#ifdef BOOST_DECIMAL_HAS_CONCEPTS
1561-
template <BOOST_DECIMAL_INTEGRAL T>
1562-
#else
1563-
template <typename T, std::enable_if_t<detail::is_integral_v<T>, bool>>
1564-
#endif
1565-
constexpr decimal32::decimal32(bool coeff, T exp, bool sign) noexcept
1566-
{
1567-
*this = decimal32(static_cast<std::int32_t>(coeff), exp, sign);
1568-
}
1569-
15701553
constexpr decimal32::operator bool() const noexcept
15711554
{
15721555
constexpr decimal32 zero {0, 0};

0 commit comments

Comments
 (0)