[Path] Switch from boost::tuple to std::tuple
It's better to use the standard lib when possible
This commit is contained in:
@@ -68,6 +68,7 @@
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <stdexcept>
|
||||
#include <tuple>
|
||||
|
||||
#include <cmath>
|
||||
#include <ctime>
|
||||
@@ -79,7 +80,6 @@
|
||||
#include <boost_signals2.hpp>
|
||||
#include <boost/bind/bind.hpp>
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <boost/utility.hpp>
|
||||
#include <boost_graph_adjacency_list.hpp>
|
||||
|
||||
|
||||
@@ -829,9 +829,9 @@ void TaskCheckGeometryResults::dispatchError(ResultEntry *entry, const BRepCheck
|
||||
std::vector<FunctionMapType>::iterator mapIt;
|
||||
for (mapIt = functionMap.begin(); mapIt != functionMap.end(); ++mapIt)
|
||||
{
|
||||
if ((*mapIt).get<0>() == entry->shape.ShapeType() && (*mapIt).get<1>() == stat)
|
||||
if (std::get<0>(*mapIt) == entry->shape.ShapeType() && std::get<1>(*mapIt) == stat)
|
||||
{
|
||||
((*mapIt).get<2>())(entry);
|
||||
(std::get<2>(*mapIt))(entry);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
#ifndef TASKCHECKGEOMETRY_H
|
||||
#define TASKCHECKGEOMETRY_H
|
||||
|
||||
#include <boost/tuple/tuple.hpp>
|
||||
#include <tuple>
|
||||
#include <BRepCheck_Analyzer.hxx>
|
||||
#include <BRepCheck_Status.hxx>
|
||||
#include <Message_ProgressIndicator.hxx>
|
||||
@@ -73,7 +73,7 @@ void goSetupResultInvalidSameParameterFlag(ResultEntry *entry);
|
||||
void goSetupResultUnorientableShapeFace(ResultEntry *entry);
|
||||
|
||||
typedef boost::function<void (ResultEntry *entry)> ResultFunction;
|
||||
typedef boost::tuple<TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction> FunctionMapType;
|
||||
typedef std::tuple<TopAbs_ShapeEnum, BRepCheck_Status, ResultFunction> FunctionMapType;
|
||||
|
||||
class ResultModel : public QAbstractItemModel
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user