Skip to content

Commit

Permalink
Merge pull request #216 from sergiopasra/cpp17
Browse files Browse the repository at this point in the history
Fix removed structures in c++17
  • Loading branch information
nicocardiel authored Nov 2, 2023
2 parents 47edec6 + 70986ef commit 83b6dde
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 59 deletions.
54 changes: 0 additions & 54 deletions src/numina/array/src/functional.h

This file was deleted.

3 changes: 1 addition & 2 deletions src/numina/array/src/nu_combine_methods.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2014 Universidad Complutense de Madrid
* Copyright 2008-2023 Universidad Complutense de Madrid
*
* This file is part of Numina
*
Expand All @@ -23,7 +23,6 @@
#include <cmath>

#include "nu_combine_defs.h"
#include "functional.h"
#include "operations.h"
#include "zip_iterator.h"

Expand Down
6 changes: 3 additions & 3 deletions src/numina/array/src/operations.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2008-2014 Universidad Complutense de Madrid
* Copyright 2008-2023 Universidad Complutense de Madrid
*
* This file is part of Numina
*
Expand Down Expand Up @@ -295,7 +295,7 @@ inline std::pair<Iterator, Iterator> reject_min_max(Iterator begin,
// if the first component of the first is less than the first component
// of the second std::pair
template<typename T, typename U>
struct LessPair1st : public std::binary_function<T,U,bool> {
struct LessPair1st {
bool operator()(const T& a, const U& b) const {
return a.first < b.first;
}
Expand All @@ -305,7 +305,7 @@ struct LessPair1st : public std::binary_function<T,U,bool> {
// is inside the range (low, high)
// equivalent to return (low < x.first) && (high > x.first);
template<typename T>
class RangePair1st : public std::unary_function<T,bool> {
class RangePair1st {
public:
RangePair1st(double low, double high) : m_low(low), m_high(high)
{}
Expand Down

0 comments on commit 83b6dde

Please sign in to comment.