You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/sci-libs/arprec/files/arprec-2.2.18-fix-c++14.patch

14 lines
368 B

Fix compiling with C++14, due to changed operator T* -> operator bool semantics.
See also: https://bugs.gentoo.org/show_bug.cgi?id=593872
--- a/src/write.cpp
+++ b/src/write.cpp
@@ -196,6 +196,6 @@
string str = to_string(precision, width, expn_width,
fmt, showpos, uppercase, fill);
- return (s << str) != 0;
+ return static_cast<bool>(s << str);
}