mirror of
https://github.com/boostorg/move.git
synced 2025-08-02 13:44:28 +02:00
Merge pull request #24 from Romain-Geissler-1A/deprecated-copy-warning
Fix gcc 9 deprecated copy warnings in antistable.
This commit is contained in:
@@ -28,6 +28,10 @@ struct antistable
|
|||||||
: m_comp(comp)
|
: m_comp(comp)
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
antistable(const antistable & other)
|
||||||
|
: m_comp(other.m_comp)
|
||||||
|
{}
|
||||||
|
|
||||||
template<class U, class V>
|
template<class U, class V>
|
||||||
bool operator()(const U &u, const V & v)
|
bool operator()(const U &u, const V & v)
|
||||||
{ return !m_comp(v, u); }
|
{ return !m_comp(v, u); }
|
||||||
|
Reference in New Issue
Block a user