~crazyscot/brot2/main

Viewing all changes in revision 680.

  • Committer: Ross Younger
  • Date: 2019-10-20 02:48:32 UTC
  • Revision ID: git-v1:464abade760ee958da82f746a46fe846bc42028d
Fix exception correctness

- virtual destructor is not required (and is wrong, because we hadn't
provided copy or copy-assignment operators).
Note that std::exception already declares a virtual destructor.
- operator<< takes an object reference, does not need to clone the
exception
- catch exceptions with references

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: