Fix compiler error for older gcc versions

This commit is contained in:
Sebastian Messmer 2016-02-22 11:44:59 +01:00
parent d5a0b725fe
commit 5f67378bc9

View File

@ -49,7 +49,8 @@ optional<CryConfigFile> CryConfigFile::load(const bf::path &path, const string &
// Migrate it to new format // Migrate it to new format
configFile.save(); 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) { CryConfigFile CryConfigFile::create(const bf::path &path, CryConfig config, const string &password, const SCryptSettings &scryptSettings) {