- added missing #include <stdexcept>