From 68d57d8cab7f4a46afa7c229a7c2adc271d8062f Mon Sep 17 00:00:00 2001 From: Romain Geissler Date: Fri, 22 Mar 2019 10:34:14 +0000 Subject: [PATCH] Fix gcc 9 deprecated copy warnings in antistable. --- include/boost/move/algo/predicate.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/move/algo/predicate.hpp b/include/boost/move/algo/predicate.hpp index 0287d66..01f9586 100644 --- a/include/boost/move/algo/predicate.hpp +++ b/include/boost/move/algo/predicate.hpp @@ -28,6 +28,10 @@ struct antistable : m_comp(comp) {} + antistable(const antistable & other) + : m_comp(other.m_comp) + {} + template bool operator()(const U &u, const V & v) { return !m_comp(v, u); }