Fix compiler warning on GCC 4.8

This commit is contained in:
Sebastian Messmer 2016-02-13 15:26:16 +01:00
parent 063e3917e3
commit 56ccf781eb

View File

@ -112,7 +112,8 @@ optional<Data> OnDiskBlock::_loadFromDisk(const bf::path &filepath) {
}
_checkHeader(&file);
Data result = Data::LoadFromStream(file);
return result;
//TODO With newer compilers, "return result;" would be enough
return boost::optional<Data>(std::move(result));
}
void OnDiskBlock::_checkHeader(istream *str) {