diff --git a/support-lib/cpp/Future.hpp b/support-lib/cpp/Future.hpp index fe732ad8..f04adaa3 100644 --- a/support-lib/cpp/Future.hpp +++ b/support-lib/cpp/Future.hpp @@ -383,16 +383,17 @@ class Future { this->_promise.setValue(std::forward(value)); } }; - template <> - struct PromiseType: PromiseTypeBase { - void return_void() { - this->_promise.setValue(); - } - }; using promise_type = PromiseType; -#endif }; +template<> template<> struct Future::PromiseType:PromiseTypeBase { + void return_void() { + this->_promise.setValue(); + } +} + +#endif + template Future detail::PromiseBase::getFuture() { return Future(_sharedStateReadOnly);