#include #include using namespace std; class QueueException: public logic_error { public: QueueException(const string & message="") : logic_error(message.c_str()) {} }; // end QueueException