stegemr commented on a change in pull request #370: URL: https://github.com/apache/celix/pull/370#discussion_r722595747
########## File path: libs/promises/api/celix/Deferred.h ########## @@ -215,22 +304,42 @@ inline celix::Deferred<void>::Deferred(std::shared_ptr<celix::impl::SharedPromis template<typename T> void celix::Deferred<T>::fail(std::exception_ptr failure) { - state->fail(std::move(failure)); + state->tryFail(std::move(failure)); +} + +template<typename T> +bool celix::Deferred<T>::tryFail(std::exception_ptr failure) { + return state->tryFail(std::move(failure)); } inline void celix::Deferred<void>::fail(std::exception_ptr failure) { - state->fail(std::move(failure)); + state->tryFail(std::move(failure)); +} + +inline bool celix::Deferred<void>::tryFail(std::exception_ptr failure) { + return state->tryFail(std::move(failure)); } template<typename T> -template<typename E, typename std::enable_if_t< std::is_base_of<std::exception, E>::value, bool>> +template<typename E, typename std::enable_if_t< std::is_base_of_v<std::exception, E>, bool>> Review comment: no all methods are inline -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@celix.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org