From: Arnaud Giersch Date: Wed, 18 Nov 2020 23:01:48 +0000 (+0100) Subject: Revert "Intel icc doesn't like attribute [[deprecated]] with "using"." X-Git-Tag: v3.26~172 X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/af367d06eb795bb1cd41096422d03e5271530b87 Revert "Intel icc doesn't like attribute [[deprecated]] with "using"." This reverts commit b38bb1786983cd04c54ec57dc21d3f8a061e5f74. --- diff --git a/include/simgrid/Exception.hpp b/include/simgrid/Exception.hpp index e1798d910e..833cc025d8 100644 --- a/include/simgrid/Exception.hpp +++ b/include/simgrid/Exception.hpp @@ -108,7 +108,7 @@ public: ~TimeoutException() override; }; -XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::TimeoutException") typedef TimeoutException TimeoutError; +using TimeoutError XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::TimeoutException") = TimeoutException; /** Exception raised when a host fails */ class HostFailureException : public Exception { @@ -204,6 +204,6 @@ private: } // namespace simgrid -XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::Exception") typedef simgrid::Exception xbt_ex; +using xbt_ex XBT_ATTRIB_DEPRECATED_v328("Please use simgrid::Exception") = simgrid::Exception; #endif diff --git a/include/simgrid/forward.h b/include/simgrid/forward.h index 99509bc076..73212dcc67 100644 --- a/include/simgrid/forward.h +++ b/include/simgrid/forward.h @@ -215,7 +215,7 @@ using smx_cond_t = simgrid::kernel::activity::ConditionVariableImpl*; using smx_mailbox_t = simgrid::kernel::activity::MailboxImpl*; using smx_mutex_t = simgrid::kernel::activity::MutexImpl*; using smx_sem_t = simgrid::kernel::activity::SemaphoreImpl*; -XBT_ATTRIB_DEPRECATED_v330("Please use kernel::activity::State") typedef simgrid::kernel::activity::State e_smx_state_t; +using e_smx_state_t XBT_ATTRIB_DEPRECATED_v330("Please use kernel::activity::State") = simgrid::kernel::activity::State; #else typedef struct s4u_Actor s4u_Actor;