Replace std::ignore with boost::ignore_unused()

According to https://isocpp.org/blog/2016/09/quick-q-stdignore-for-ignoring-unused-variable std::ignore is not supposed to be used for this
This commit is contained in:
wmayer
2022-07-15 13:15:47 +02:00
parent 1bb9699c9a
commit c2667384bd
8 changed files with 16 additions and 6 deletions

View File

@@ -162,6 +162,7 @@
#endif // _PreComp_
#include <boost/algorithm/string/predicate.hpp>
#include <boost/core/ignore_unused.hpp>
#include <App/Material.h>
#include <Base/BoundBox.h>
@@ -4280,7 +4281,7 @@ TopoShape &TopoShape::makeTransform(const TopoShape &shape, const gp_Trsf &trsf,
TopoShape &TopoShape::makeGTransform(const TopoShape &shape, const Base::Matrix4D &rclTrf, const char *op, bool copy)
{
std::ignore = op;
boost::ignore_unused(op);
_Shape = shape.transformGShape(rclTrf, copy);
return *this;
}

View File

@@ -42,6 +42,7 @@
// Boost
#include <boost/bind/bind.hpp>
#include <boost/core/ignore_unused.hpp>
// OCC
#include <Standard_math.hxx>

View File

@@ -24,6 +24,7 @@
#include "PreCompiled.h"
#ifndef _PreComp_
# include <boost/core/ignore_unused.hpp>
# include <QAction>
# include <QMessageBox>
#endif
@@ -61,7 +62,7 @@ TaskShapeBinder::TaskShapeBinder(ViewProviderShapeBinder* view, bool newObj, QWi
, ui(new Ui_TaskShapeBinder)
, vp(view)
{
std::ignore = newObj;
boost::ignore_unused(newObj);
// we need a separate container widget to add all controls to
proxy = new QWidget(this);