Skip to content

Commit

Permalink
fix for compilation with gcc v12
Browse files Browse the repository at this point in the history
  • Loading branch information
koomie committed Jul 12, 2023
1 parent c2775cf commit df1b110
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/grvy_int.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ namespace GRVY {

class TimerCmpHighLow {
public:
bool operator()(const std::vector <double> v1, const std::vector <double> v2 ) {
bool operator()(const std::vector <double> v1, const std::vector <double> v2 ) const {
return ( v1[0] - v2[0] ) > 0; }
};

class TimerCmpLowHigh {
public:
bool operator()(const std::vector <double> v1, const std::vector <double> v2 ) {
bool operator()(const std::vector <double> v1, const std::vector <double> v2 ) const {
return ( v1[0] - v2[0] ) < 0; }
};

Expand Down

0 comments on commit df1b110

Please sign in to comment.