Совместимость с Смоленск 1.5

This commit is contained in:
Andrei Astafev 2024-04-08 22:10:41 +03:00
parent 8d4aebdee2
commit 10d1597d25
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,23 @@
#ifndef MYX_BACKPORTS_QASCONST_HPP_
#define MYX_BACKPORTS_QASCONST_HPP_
#pragma once
#include <QtGlobal>
#if QT_VERSION < 0x050700
template < typename T >
Q_DECL_CONSTEXPR typename std::add_const< T >::type& qAsConst( T& t ) noexcept
{
return( t );
}
// prevent rvalue arguments:
template < typename T >
void qAsConst( const T&& ) = delete;
#endif // if QT_VERSION < 0x050700
#endif // ifndef MYX_BACKPORTS_QASCONST_HPP_

View File

@ -3,6 +3,7 @@
*/
#include <myx-example-features/processor.hpp>
#include <myx-example-features/private/qasconst.hpp>
#include <cmath>