mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-20 20:40:29 +08:00
refs #624 Use noexcept instead of Q_DECL_NOEXCEPT.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BlackMisc
|
||||
*/
|
||||
//! @{
|
||||
template <class T>
|
||||
constexpr typename std::add_const<T>::type &as_const(T &v) Q_DECL_NOEXCEPT { return v; }
|
||||
constexpr typename std::add_const<T>::type &as_const(T &v) noexcept { return v; }
|
||||
template <class T>
|
||||
void as_const(const T &&) = delete;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user