[Bug c++/78861] sequencer.cpp:603:53: error: cannot convert 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' to 'bool' in assignment
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Dec 20 14:32:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78861
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
No, that will convert the stream to a bool then try to bitshift it.
It should be:
result = bool( iss >> t.duration >> t.width );
More information about the Gcc-bugs
mailing list