From 36fe6e6f7d8be2aa95c65c5ce68faf2ea80ca1b5 Mon Sep 17 00:00:00 2001 From: Johann Dreo Date: Wed, 18 Jan 2023 11:28:50 +0100 Subject: [PATCH] fix a warning --- mo/src/problems/partition/moBinaryPartitionSwapNeighbor.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mo/src/problems/partition/moBinaryPartitionSwapNeighbor.h b/mo/src/problems/partition/moBinaryPartitionSwapNeighbor.h index dd65b9c0d..8dca43d53 100644 --- a/mo/src/problems/partition/moBinaryPartitionSwapNeighbor.h +++ b/mo/src/problems/partition/moBinaryPartitionSwapNeighbor.h @@ -144,6 +144,11 @@ class moBinaryPartitionSwapNeighbor : auto [in, out] = neighbor.get(); return this->select == in and this->reject == out; } + private: + // Disable access to `equals(moNeighbor<…>&)` (removes the related overloaded-virtual warning). + using moBackableNeighbor::equals; + + public: virtual std::string className() const override { return "moBinaryPartitionSwapNeighbor";