This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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


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

--- Comment #3 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
(In reply to mgansser@alice.de from comment #2)
> (In reply to Markus Trippelsdorf from comment #1)
> > https://gcc.gnu.org/gcc-6/porting_to.html
> 
> I am not a software developer, could you please tell me, where can i get
> help ?

Well, just read the porting_to page. It explicitly addresses your issue.

instead of:
   result = ( iss >> t.duration >> t.width );
use:
   result = ( (bool)iss >> t.duration >> t.width );

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]