Fix subscript[0] in streams.h

This commit is contained in:
Jeremy Rubin 2017-03-28 11:35:51 -04:00
parent 4cac0d1e04
commit bc2e7fd984

View file

@ -389,7 +389,7 @@ public:
{ {
// Special case: stream << stream concatenates like stream += stream // Special case: stream << stream concatenates like stream += stream
if (!vch.empty()) if (!vch.empty())
s.write((char*)&vch[0], vch.size() * sizeof(vch[0])); s.write((char*)vch.data(), vch.size() * sizeof(value_type));
} }
template<typename T> template<typename T>