diff options
author | lloyd <[email protected]> | 2008-09-30 03:23:58 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2008-09-30 03:23:58 +0000 |
commit | ed51fe5c3d095d307c3ace5c2f3ef37bd1ac80dd (patch) | |
tree | d3d9dfa6faaa58505ed65f2c6adff86f99145a2c | |
parent | cc0495910b4ff6d22e5e5a21adff018a037ca756 (diff) |
Correct declaration of Memory_Exhaustion::what to be const and throw(),
to match std::exception
-rw-r--r-- | src/mem_pool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp index 74d09d5df..d42d7827e 100644 --- a/src/mem_pool.cpp +++ b/src/mem_pool.cpp @@ -20,8 +20,8 @@ namespace { *************************************************/ struct Memory_Exhaustion : public std::bad_alloc { - const char* what() - { return "Ran out of memory, allocation failed"; } + const char* what() const throw() + { return "Ran out of memory, allocation failed"; } }; } |