office-gobmx/external/clucene/patches/c++20.patch
Stephan Bergmann 5558256e77 external/clucene: Adapt to C++20 CWG2237
...<http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237> "Can a
template-id name a constructor?", as implemented by GCC 11 trunk since
<https://gcc.gnu.org/git/?p=gcc.git;a=commit;
h=4b38d56dbac6742b038551a36ec80200313123a1> "c++: C++20 DR 2237, disallow
simple-template-id in cdtor."

Change-Id: I507fc5bde20fdf09b4e31a3db8a7554a473f1a9f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96549
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2020-06-17 19:51:38 +02:00

11 lines
341 B
Diff

--- src/core/CLucene/util/_bufferedstream.h
+++ src/core/CLucene/util/_bufferedstream.h
@@ -68,7 +68,7 @@
void setMinBufSize(int32_t s) {
buffer.makeSpace(s);
}
- BufferedStreamImpl<T>();
+ BufferedStreamImpl();
public:
int32_t read(const T*& start, int32_t min, int32_t max);
int64_t reset(int64_t pos);