This is throwing an error on gcc

This commit is contained in:
KimLS 2017-01-14 16:06:55 -08:00
parent f53bdaeb7e
commit f7eb15bf53

View File

@ -40,7 +40,7 @@ namespace EQ {
cereal::BinaryOutputArchive output(m_stream); cereal::BinaryOutputArchive output(m_stream);
output(value); output(value);
auto &str = m_stream.str(); auto str = m_stream.str();
if (Length() < offset + str.length()) { if (Length() < offset + str.length()) {
if (!Resize(offset + str.length())) { if (!Resize(offset + str.length())) {
throw std::out_of_range("Packet::PutSerialize(), could not resize packet and would of written past the end."); throw std::out_of_range("Packet::PutSerialize(), could not resize packet and would of written past the end.");