GCC exception fix

develop
Petr Mrázek 2010-03-01 01:21:54 +01:00
parent 0a23757797
commit 9f7609de65
1 changed files with 10 additions and 2 deletions

@ -87,8 +87,7 @@ namespace DFHack
s << _key;
key = s.str();
}
virtual ~MissingMemoryDefinition() throw()
{};
virtual ~MissingMemoryDefinition() throw(){};
// (perhaps it should be an enum, but this is intended for easy printing/logging)
// type can be any of the following:
@ -126,6 +125,8 @@ namespace DFHack
const int row;
const int col;
virtual ~MemoryXmlParse() throw(){};
virtual const char* what() const throw()
{
std::stringstream s;
@ -141,6 +142,8 @@ namespace DFHack
std::string attr;
virtual ~MemoryXmlBadAttribute() throw(){};
virtual const char* what() const throw()
{
std::stringstream s;
@ -154,6 +157,8 @@ namespace DFHack
public:
MemoryXmlNoRoot() {}
virtual ~MemoryXmlNoRoot() throw(){};
virtual const char* what() const throw()
{
return "no pElem found";
@ -164,6 +169,7 @@ namespace DFHack
{
public:
MemoryXmlNoDFExtractor(const char* _name) : name(_name) {}
virtual ~MemoryXmlNoDFExtractor() throw(){};
std::string name;
@ -179,6 +185,7 @@ namespace DFHack
{
public:
MemoryXmlUnderspecifiedEntry() {}
virtual ~MemoryXmlUnderspecifiedEntry() throw(){};
virtual const char* what() const throw()
{
@ -190,6 +197,7 @@ namespace DFHack
{
public:
MemoryXmlUnknownType(const char* _type) : type(_type) {}
virtual ~MemoryXmlUnknownType() throw(){};
std::string type;