lib/nfs/Manager: gcc 4.7 compatibility hack
std::map::emplace() is only available from gcc 4.8 on.
This commit is contained in:
@@ -41,6 +41,13 @@ class NfsManager {
|
||||
:NfsConnection(_loop, _server, _export_name),
|
||||
manager(_manager) {}
|
||||
|
||||
#if defined(__GNUC__) && !defined(__clang__) && !GCC_CHECK_VERSION(4,8)
|
||||
/* needed due to lack of std::map::emplace() */
|
||||
ManagedConnection(ManagedConnection &&other)
|
||||
:NfsConnection(std::move(other)),
|
||||
manager(other.manager) {}
|
||||
#endif
|
||||
|
||||
protected:
|
||||
/* virtual methods from NfsConnection */
|
||||
void OnNfsConnectionError(Error &&error) override;
|
||||
|
Reference in New Issue
Block a user