We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 233eeb3 commit c86557eCopy full SHA for c86557e
libcxx/include/bitset
@@ -524,11 +524,7 @@ inline _LIBCPP_CONSTEXPR __bitset<1, _Size>::__bitset() _NOEXCEPT : __first_(0)
524
525
template <size_t _Size>
526
inline _LIBCPP_CONSTEXPR __bitset<1, _Size>::__bitset(unsigned long long __v) _NOEXCEPT
527
- : __first_(static_cast<__storage_type>(__v)) {
528
- // Force __bits_per_word to be instantiated to avoid "gdb.error: There is no member or method named
529
- // __bits_per_word"
530
- (void)__bits_per_word;
531
-}
+ : __first_(_Size == __bits_per_word ? static_cast<__storage_type>(__v) : static_cast<__storage_type>(__v)) {}
532
533
534
inline _LIBCPP_HIDE_FROM_ABI _LIBCPP_CONSTEXPR_SINCE_CXX23 void
0 commit comments