Skip to content
Advertisement

Tag: stl

How one can safely serialize std::basic_istream::pos_type?

In one of my projects I have to cache positional information about certain data chunks found in large files. I’ve already implemented a small API built around std::basic_istream<char>::pos_type placed in maps. Now I need to serialize these descriptors into a bytestream and write them on a disk for further usage (on other *nix-machines as well). I have read that this

Advertisement