Browse Source

Fix subscript[0] in streams.h

0.15
Jeremy Rubin 8 years ago
parent
commit
bc2e7fd984
  1. 2
      src/streams.h

2
src/streams.h

@ -389,7 +389,7 @@ public: @@ -389,7 +389,7 @@ public:
{
// Special case: stream << stream concatenates like stream += stream
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>

Loading…
Cancel
Save