diff --git a/PlatformSupport/StdFS.hpp b/PlatformSupport/StdFS.hpp index 13673d5..821359b 100644 --- a/PlatformSupport/StdFS.hpp +++ b/PlatformSupport/StdFS.hpp @@ -172,9 +172,8 @@ public: return _stream.read(reinterpret_cast(in), length) ? length : _stream.gcount(); } - size_t Read(size_t length) + size_t Read(size_t length, std::vector & in) { - std::vector in; in.resize(length); return Read(in.data(), length); }