⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 exceptions.h

📁 GPS的一个应用程序,很不错的.大家试一试.
💻 H
字号:
#ifndef EXCEPTIONS_H#define EXCEPTIONS_H#include <stdexcept>namespace gpsmgr { namespace exceptions {    struct IllegalValue {};    struct ParseError {};        template <class T>    class Exception : public runtime_error    {    public:	typedef T Type;		Exception() :	    runtime_error(""),	    mType ()	    {}		Exception(const string& what,		  const T& exc = T()) :	    runtime_error(what),	    mType (exc)	    {}	const Type& type() const	    { return mType; }	    private:	T mType;    };		   } }#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -