Skip to content

Commit

Permalink
Add QCoroFwd header with forward-declarations of QCoro types (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
danvratil committed May 27, 2022
1 parent d41b3a4 commit 06e92ae
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions qcoro/CMakeLists.txt
Expand Up @@ -16,6 +16,7 @@ add_qcoro_library(
CAMELCASE_HEADERS
QCoro
QCoroAsyncGenerator
QCoroFwd
QCoroGenerator
QCoroTask
HEADERS
Expand Down
15 changes: 15 additions & 0 deletions qcoro/qcorofwd.h
@@ -0,0 +1,15 @@
// SPDX-FileCopyrightText: 2022 Daniel Vrátil <dvratil@kde.org>
//
// SPDX-License-Identifier: MIT

#pragma once

namespace QCoro {

template<typename T> class Task;
template<typename T> class Generator;
template<typename T> class GeneratorIterator;
template<typename T> class AsyncGenerator;
template<typename T> class AsyncGeneratorIterator<T>;

} // namespace QCoro

0 comments on commit 06e92ae

Please sign in to comment.