spack/var/spack/repos/builtin/packages/libgtextutils/text_line_reader.patch
George Hartzell 611df0bebf New gcc uses C++14 mode, this fixes implicit conversion (#3392)
* New gcc uses C++14 mode, this fixes implicit conversion

The issue is described in depth [here][desc].  C++14 no longer
allows implicit conversion from iostream classes to void*.

This patch comes directly from [PR #6][patch].

[desc]: http://stackoverflow.com/questions/38659115/make-fails-with-error-cannot-convert-stdistream-aka-stdbasic-istreamchar
[patch]: https://github.com/agordon/libgtextutils/pull/6

* mend
2017-03-09 17:27:56 -06:00

11 lines
318 B
Diff

--- libgtextutils/src/gtextutils/text_line_reader.cpp.orig 2017-03-09 07:49:56.358283887 -0800
+++ libgtextutils/src/gtextutils/text_line_reader.cpp 2017-03-09 07:50:24.317503887 -0800
@@ -44,6 +44,6 @@
if (input_stream.eof())
return false;
- return input_stream ;
+ return static_cast<bool>(input_stream) ;
}