Don't copy the object on WriteOne

This commit is contained in:
Patrick Niklaus 2017-05-29 13:07:48 +00:00 committed by Patrick Niklaus
parent a544935e7d
commit 579a1ed42e

View File

@ -227,7 +227,7 @@ class FileWriter
template <typename T> void WriteFrom(const T &src) { WriteFrom(&src, 1); }
template <typename T> void WriteOne(const T tmp) { WriteFrom(tmp); }
template <typename T> void WriteOne(const T &tmp) { WriteFrom(tmp); }
void WriteElementCount64(const std::uint64_t count) { WriteOne<std::uint64_t>(count); }