diff --git a/include/ginkgo/core/log/logger.hpp b/include/ginkgo/core/log/logger.hpp index a6fade087b0..e5773f8865d 100644 --- a/include/ginkgo/core/log/logger.hpp +++ b/include/ginkgo/core/log/logger.hpp @@ -455,9 +455,9 @@ public: \ * @warning This on_iteration_complete function that this macro declares is * deprecated. Please use the version with the stopping information. */ - [ - [deprecated("Please use the version with the additional stopping " - "information.")]] virtual void + [[deprecated( + "Please use the version with the additional stopping " + "information.")]] virtual void on_iteration_complete(const LinOp* solver, const size_type& it, const LinOp* r, const LinOp* x = nullptr, const LinOp* tau = nullptr) const @@ -476,9 +476,9 @@ public: \ * @warning This on_iteration_complete function that this macro declares is * deprecated. Please use the version with the stopping information. */ - [ - [deprecated("Please use the version with the additional stopping " - "information.")]] virtual void + [[deprecated( + "Please use the version with the additional stopping " + "information.")]] virtual void on_iteration_complete(const LinOp* solver, const size_type& it, const LinOp* r, const LinOp* x, const LinOp* tau, const LinOp* implicit_tau_sq) const @@ -874,8 +874,8 @@ class EnableLogging : public PolymorphicBase { template struct propagate_log_helper< Event, ConcreteLoggableT, - xstd::void_t().get_executor())>> { + xstd::void_t< + decltype(std::declval().get_executor())>> { template static void propagate_log(const ConcreteLoggableT* loggable, Args&&... args)