fix - pass value by reference

This commit is contained in:
artemp 2015-09-25 15:26:02 +01:00
parent dd0ef307ee
commit 8b4ff85b0d

View file

@ -43,7 +43,7 @@
// operator>> needed by mapnik::spatial_index<Value, Filter, InputStream>
template <typename InputStream>
InputStream & operator>>(InputStream & in, std::streampos pos)
InputStream & operator>>(InputStream & in, std::streampos & pos)
{
in.read(reinterpret_cast<char*>(&pos), sizeof(std::streampos));
return in;