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) {