Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2017 08:51:37 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-toolchain@FreeBSD.org
Subject:   [Bug 216080] science/bddsolve: fails to build with libc++ 4.0
Message-ID:  <bug-216080-29464-PsFUKWRkij@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-216080-29464@https.bugs.freebsd.org/bugzilla/>
References:  <bug-216080-29464@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216080

Jan Beich (mail not working) <jbeich@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |freebsd-toolchain@FreeBSD.o
                   |                            |rg

--- Comment #3 from Jan Beich (mail not working) <jbeich@FreeBSD.org> ---
>  bool exists_file(const std::string& filename)
>  {
>    std::ifstream from(filename.c_str());
> -  return (from);
> +  return !from.fail();

Why not "return from.good()" instead similar to textproc/libxml++26 upstream
fix? Otherwise, ask toolchain@ whether to convert or not. I don't know much
C++.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216080-29464-PsFUKWRkij>