From df1b110ad1778ab43f6116f022e27c23c8d2cb12 Mon Sep 17 00:00:00 2001 From: "Karl W. Schulz" Date: Wed, 12 Jul 2023 11:49:33 -0500 Subject: [PATCH] fix for compilation with gcc v12 --- src/grvy_int.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grvy_int.h b/src/grvy_int.h index 14c947a..9fb0cd5 100644 --- a/src/grvy_int.h +++ b/src/grvy_int.h @@ -103,13 +103,13 @@ namespace GRVY { class TimerCmpHighLow { public: - bool operator()(const std::vector v1, const std::vector v2 ) { + bool operator()(const std::vector v1, const std::vector v2 ) const { return ( v1[0] - v2[0] ) > 0; } }; class TimerCmpLowHigh { public: - bool operator()(const std::vector v1, const std::vector v2 ) { + bool operator()(const std::vector v1, const std::vector v2 ) const { return ( v1[0] - v2[0] ) < 0; } };