This page is a snapshot from the LWG issues list, see the Library Active Issues List for more information and the meaning of WP status.
Section: 20.9.4 [bitset.operators] Status: WP Submitter: Davis Herring Opened: 2019-04-05 Last modified: 2019-07-27
Priority: Not Prioritized
View all other issues in [bitset.operators].
View all issues with WP status.
From a StackOverflow question:
[bitset.operators]/5.1 says that extracting a bitset<0> stops after reading 0 characters. /6 then says that, since no characters were stored, failbit is set.[2019-06-09; Priority to 0 and Status to Tentatively Ready after five positive votes on the reflector.]
This wording is relative to N4810.
Modify 20.9.4 [bitset.operators] as indicated:
template<class charT, class traits, size_t N> basic_istream<charT, traits>& operator>>(basic_istream<charT, traits>& is, bitset<N>& x);
[…]-6- If no characters are stored in str, calls is.setstate(ios_base::failbit) (which may throw ios_base::failure (184.108.40.206 [iostate.flags])).