Catch NoSuchFile by const reference
elshize opened this issue · 0 comments
elshize commented
Here:
/work/pisa/tools/invert.cpp: In function 'int main(int, char**)':
/work/pisa/tools/invert.cpp:33:35: warning: catching polymorphic type 'class pisa::io::NoSuchFile' by value [-Wcatch-value=]
} catch (pisa::io::NoSuchFile err) {
^~~