| 2291 | { |
| 2292 | public: |
| 2293 | explicit proxy_serialize ( |
| 2294 | const std::string& filename |
| 2295 | ) : fout_optional_owning_ptr(new std::ofstream(filename.c_str(), std::ios::binary)), |
| 2296 | fout(*fout_optional_owning_ptr) |
| 2297 | { |
| 2298 | if (!fout) |
| 2299 | throw serialization_error("Unable to open " + filename + " for writing."); |
| 2300 | } |
| 2301 | |
| 2302 | explicit proxy_serialize ( |
| 2303 | std::vector<char>& buf |
nothing calls this directly
no test coverage detected