error: inline variables are only available with -std=c++1z or -std=gnu++1z.

develop
Roman Telezhynskyi 2022-11-22 12:17:48 +02:00
parent a749d15376
commit 655f978706
2 changed files with 39 additions and 1 deletions

View File

@ -41,7 +41,8 @@ SOURCES += \
$$PWD/vbestsquare.cpp \
$$PWD/vlayoutpoint.cpp \
$$PWD/vposition.cpp \
$$PWD/vrawlayout.cpp \
$$PWD/vrawlayout.cpp \
$$PWD/vsapoint.cpp \
$$PWD/vprintlayout.cpp \
$$PWD/vtextmanager.cpp \
$$PWD/vposter.cpp \

View File

@ -0,0 +1,37 @@
/************************************************************************
**
** @file vsapoint.cpp
** @author Roman Telezhynskyi <dismine(at)gmail.com>
** @date 22 11, 2022
**
** @brief
** @copyright
** This source code is part of the Valentina project, a pattern making
** program, whose allow create and modeling patterns of clothing.
** Copyright (C) 2022 Valentina project
** <https://gitlab.com/smart-pattern/valentina> All Rights Reserved.
**
** Valentina is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License, or
** (at your option) any later version.
**
** Valentina is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
** GNU General Public License for more details.
**
** You should have received a copy of the GNU General Public License
** along with Valentina. If not, see <http://www.gnu.org/licenses/>.
**
*************************************************************************/
// See https://stackoverflow.com/a/46719572/3045403
#if __cplusplus < 201703L
#include "vsapoint.h"
constexpr qreal VSAPoint::passmarkFactor; // NOLINT(readability-redundant-declaration)
constexpr qreal VSAPoint::maxPassmarkLength; // NOLINT(readability-redundant-declaration)
constexpr qreal VSAPoint::minSAWidth; // NOLINT(readability-redundant-declaration)
#endif