mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refs #624 Use constexpr instead of Q_CONSTEXPR.
This commit is contained in:
@@ -45,7 +45,7 @@ namespace BlackMisc
|
||||
*/
|
||||
//! @{
|
||||
template <class T>
|
||||
Q_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) Q_DECL_NOEXCEPT { return v; }
|
||||
template <class T>
|
||||
void as_const(const T &&) = delete;
|
||||
//! @}
|
||||
|
||||
Reference in New Issue
Block a user