From 5f67378bc9db9dde0aff1e99ba9bfb7c54e380fa Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 22 Feb 2016 11:44:59 +0100 Subject: [PATCH] Fix compiler error for older gcc versions --- src/cryfs/config/CryConfigFile.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cryfs/config/CryConfigFile.cpp b/src/cryfs/config/CryConfigFile.cpp index 2455ac29..7b1d1b10 100644 --- a/src/cryfs/config/CryConfigFile.cpp +++ b/src/cryfs/config/CryConfigFile.cpp @@ -49,7 +49,8 @@ optional CryConfigFile::load(const bf::path &path, const string & // Migrate it to new format configFile.save(); } - return configFile; + //TODO For newer compilers, this works without std::move + return std::move(configFile); } CryConfigFile CryConfigFile::create(const bf::path &path, CryConfig config, const string &password, const SCryptSettings &scryptSettings) {