Fix gcc build

This commit is contained in:
Sebastian Messmer 2019-09-29 07:08:07 +08:00
parent 3d1966f656
commit f6ef18b046
1 changed files with 5 additions and 2 deletions

View File

@ -48,8 +48,11 @@ either<CryConfigFile::LoadError, unique_ref<CryConfigFile>> CryConfigFile::load(
// Migrate it to new format // Migrate it to new format
configFile->save(); configFile->save();
} }
//TODO For newer compilers, this works without std::move #if !defined(__clang__) && !defined(_MSC_VER) && defined(__GNUC__) && __GNUC__ < 8
return configFile; return std::move(configFile);
#else
return configFile;
#endif
} }
unique_ref<CryConfigFile> CryConfigFile::create(bf::path path, CryConfig config, CryKeyProvider* keyProvider) { unique_ref<CryConfigFile> CryConfigFile::create(bf::path path, CryConfig config, CryKeyProvider* keyProvider) {