aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/nfs/Manager.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/nfs/Manager.hxx')
-rw-r--r--src/lib/nfs/Manager.hxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/nfs/Manager.hxx b/src/lib/nfs/Manager.hxx
index 4a380bd51..11a779a2a 100644
--- a/src/lib/nfs/Manager.hxx
+++ b/src/lib/nfs/Manager.hxx
@@ -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;