diff options
| author | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-14 20:09:15 -0700 |
|---|---|---|
| committer | Yuri Victorovich <yuri@FreeBSD.org> | 2025-10-14 20:22:51 -0700 |
| commit | 437f4844c161a0c46c82167594acd7951efe32c6 (patch) | |
| tree | 8a2cd4616a42ba5845d380f9e08cbd059c474acf /graphics/vv/files/patch-common_clitkCommon.txx | |
| parent | science/pcmsolver: Fix build (diff) | |
graphics/vv: update 1.4.0-383 → 1.4.0.406
switched to vtk-9.5
Diffstat (limited to 'graphics/vv/files/patch-common_clitkCommon.txx')
| -rw-r--r-- | graphics/vv/files/patch-common_clitkCommon.txx | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/graphics/vv/files/patch-common_clitkCommon.txx b/graphics/vv/files/patch-common_clitkCommon.txx new file mode 100644 index 000000000000..8f800d137543 --- /dev/null +++ b/graphics/vv/files/patch-common_clitkCommon.txx @@ -0,0 +1,25 @@ +Remove deprecated std::binary_function base class. + +C++17 removed std::binary_function which was deprecated in C++11. +Replace with plain structs that define operator(). + +--- common/clitkCommon.txx.orig 2025-04-17 12:54:38 UTC ++++ common/clitkCommon.txx +@@ -135,7 +135,7 @@ template<class Type> + + //-------------------------------------------------------------------- + template<class Type> +-struct vectorComparisonLowerThan: public std::binary_function<int, int, bool> { ++struct vectorComparisonLowerThan { + vectorComparisonLowerThan(const std::vector<Type> & v):vect(v) {}; + bool operator()(int x, int y) { + return (vect[x] < vect[y]); +@@ -146,7 +146,7 @@ template<class Type> + + //-------------------------------------------------------------------- + template<class Type> +-struct vectorComparisonGreaterThan: public std::binary_function<int, int, bool> { ++struct vectorComparisonGreaterThan { + vectorComparisonGreaterThan(const std::vector<Type> & v):vect(v) {}; + bool operator()(int x, int y) { + return (vect[x] > vect[y]); |
