diff --git a/hprint.cpp b/hprint.cpp index 78ca8467..a9d1709c 100644 --- a/hprint.cpp +++ b/hprint.cpp @@ -144,7 +144,10 @@ template void hread(hstream& hs, map& a) { template void hwrite(hstream& hs, const C& c, const C1& c1, const CS&... cs) { hwrite(hs, c); hwrite(hs, c1, cs...); } template void hread(hstream& hs, C& c, C1& c1, CS&... cs) { hread(hs, c); hread(hs, c1, cs...); } -struct hstream_exception : hr_exception {}; +struct hstream_exception : hr_exception { + hstream_exception() : hr_exception("hstream_exception") {} + hstream_exception(const std::string &s) : hr_exception(s) {} + }; struct fhstream : hstream { FILE *f;