This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[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
- From: "trippels at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 20 Dec 2016 14:08:53 +0000
- Subject: [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
- Auto-submitted: auto-generated
- References: <bug-78861-4@http.gcc.gnu.org/bugzilla/>
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 );