lib/nfs/Manager: add Compare(ManagedConnection, ManagedConnection)
Required for Boost 1.61, which uses that overload in a BOOST_ASSERT().
This commit is contained in:
parent
36704c5e18
commit
588303b78d
1
NEWS
1
NEWS
@ -9,6 +9,7 @@ ver 0.19.18 (not yet released)
|
|||||||
- sidplay: allow building with libsidplayfp instead of libsidplay2
|
- sidplay: allow building with libsidplayfp instead of libsidplay2
|
||||||
* output
|
* output
|
||||||
- shout: recognize setting "encoder" instead of "encoding"
|
- shout: recognize setting "encoder" instead of "encoding"
|
||||||
|
* fix build failure with Boost 1.61
|
||||||
* require gcc 4.7 or newer
|
* require gcc 4.7 or newer
|
||||||
|
|
||||||
ver 0.19.17 (2016/07/09)
|
ver 0.19.17 (2016/07/09)
|
||||||
|
@ -59,6 +59,18 @@ NfsManager::Compare::operator()(const ManagedConnection &a,
|
|||||||
return result < 0;
|
return result < 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline bool
|
||||||
|
NfsManager::Compare::operator()(const ManagedConnection &a,
|
||||||
|
const ManagedConnection &b) const
|
||||||
|
{
|
||||||
|
int result = strcmp(a.GetServer(), b.GetServer());
|
||||||
|
if (result != 0)
|
||||||
|
return result < 0;
|
||||||
|
|
||||||
|
result = strcmp(a.GetExportName(), b.GetExportName());
|
||||||
|
return result < 0;
|
||||||
|
}
|
||||||
|
|
||||||
NfsManager::~NfsManager()
|
NfsManager::~NfsManager()
|
||||||
{
|
{
|
||||||
assert(GetEventLoop().IsInside());
|
assert(GetEventLoop().IsInside());
|
||||||
|
@ -64,6 +64,10 @@ class NfsManager final : IdleMonitor {
|
|||||||
gcc_pure
|
gcc_pure
|
||||||
bool operator()(const ManagedConnection &a,
|
bool operator()(const ManagedConnection &a,
|
||||||
const LookupKey b) const;
|
const LookupKey b) const;
|
||||||
|
|
||||||
|
gcc_pure
|
||||||
|
bool operator()(const ManagedConnection &a,
|
||||||
|
const ManagedConnection &b) const;
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user