forked from amazingfate/loongoffice
...at least when building with --with-latest-c++ against recent LLVM 16 trunk
Clang and libc++,
> In file included from workdir/UnpackedTarball/zxing/core/src/datamatrix/DMDetector.cpp:8:
> In file included from workdir/UnpackedTarball/zxing/core/src/datamatrix/DMDetector.h:10:
> workdir/UnpackedTarball/zxing/core/src/Generator.h:15:16: error: no type named 'movable' in namespace 'std'
> template <std::movable T>
> ~~~~~^
> workdir/UnpackedTarball/zxing/core/src/Generator.h:70:24: error: no type named 'default_sentinel_t' in namespace 'std'
> bool operator==(std::default_sentinel_t) const { return !_coroutine || _coroutine.done(); }
> ~~~~~^
Change-Id: I26720e4d07498b277ec879129634064f1d45362a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143809
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
13 lines
293 B
Plaintext
13 lines
293 B
Plaintext
--- core/src/Generator.h
|
|
+++ core/src/Generator.h
|
|
@@ -6,7 +6,9 @@
|
|
#pragma once
|
|
|
|
#ifdef __cpp_impl_coroutine
|
|
+#include <concepts>
|
|
#include <coroutine>
|
|
+#include <iterator>
|
|
#include <optional>
|
|
|
|
// this code is based on https://en.cppreference.com/w/cpp/coroutine/coroutine_handle#Example
|