aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++/new
diff options
context:
space:
mode:
Diffstat (limited to 'libstdc++-v3/libsupc++/new')
-rw-r--r--libstdc++-v3/libsupc++/new4
1 files changed, 2 insertions, 2 deletions
diff --git a/libstdc++-v3/libsupc++/new b/libstdc++-v3/libsupc++/new
index 87c9d712f37..56cc1833fe8 100644
--- a/libstdc++-v3/libsupc++/new
+++ b/libstdc++-v3/libsupc++/new
@@ -31,7 +31,6 @@
#ifndef __NEW__
#define __NEW__
-#pragma interface "new"
#include <cstddef>
#include <exception>
@@ -42,7 +41,8 @@ namespace std
class bad_alloc : public exception
{
public:
- virtual const char* what() const throw() { return "bad_alloc"; }
+ bad_alloc() throw() { }
+ virtual ~bad_alloc() throw();
};
struct nothrow_t { };