Fix gcc build
This commit is contained in:
parent
3d1966f656
commit
f6ef18b046
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user