From 06e92aecc10014952028539839cd1486897b4bf0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Vr=C3=A1til?= Date: Fri, 27 May 2022 22:21:36 +0200 Subject: [PATCH] Add QCoroFwd header with forward-declarations of QCoro types (#71) --- qcoro/CMakeLists.txt | 1 + qcoro/qcorofwd.h | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 qcoro/qcorofwd.h diff --git a/qcoro/CMakeLists.txt b/qcoro/CMakeLists.txt index 7bbb68b5..193abca4 100644 --- a/qcoro/CMakeLists.txt +++ b/qcoro/CMakeLists.txt @@ -16,6 +16,7 @@ add_qcoro_library( CAMELCASE_HEADERS QCoro QCoroAsyncGenerator + QCoroFwd QCoroGenerator QCoroTask HEADERS diff --git a/qcoro/qcorofwd.h b/qcoro/qcorofwd.h new file mode 100644 index 00000000..ce1f9520 --- /dev/null +++ b/qcoro/qcorofwd.h @@ -0,0 +1,15 @@ +// SPDX-FileCopyrightText: 2022 Daniel Vrátil +// +// SPDX-License-Identifier: MIT + +#pragma once + +namespace QCoro { + +template class Task; +template class Generator; +template class GeneratorIterator; +template class AsyncGenerator; +template class AsyncGeneratorIterator; + +} // namespace QCoro