mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-10 00:10:19 +03:00
Closes: https://bugs.gentoo.org/966833 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
13 lines
387 B
Diff
13 lines
387 B
Diff
diff -Naur a/utility.h b/utility.h
|
|
--- a/utility.h 2017-12-03 03:47:35.302504007 +0100
|
|
+++ b/utility.h 2017-12-03 03:47:59.537116442 +0100
|
|
@@ -75,7 +75,7 @@
|
|
static bool stringTo ( const string& s, T& result )
|
|
{
|
|
istringstream is ( s ) ;
|
|
- return is >> result ;
|
|
+ return static_cast<bool>(is >> result);
|
|
}
|
|
|
|
/** generic conversion from T to string */
|