[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

martin.gansser at gmail dot com gcc-bugzilla@gcc.gnu.org
Tue Dec 20 14:52:00 GMT 2016


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78861

--- Comment #6 from mgansser at alice dot de <martin.gansser at gmail dot com> ---
(In reply to Markus Trippelsdorf from comment #5)
> (In reply to Jonathan Wakely from comment #4)
> > No, that will convert the stream to a bool then try to bitshift it.
> > 
> > It should be:
> > 
> >    result = bool( iss >> t.duration >> t.width );
> 
> Yeah, sorry.

fine, compiles now w/o problems.

Danke


More information about the Gcc-bugs mailing list