summaryrefslogtreecommitdiff
path: root/academic/grass/changeset_r50130.diff
blob: 90b93ec27f10cc07bdc2797f38a9fe0644b29dae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Index: /grass/trunk/lib/iostream/mm.cc
===================================================================
--- /grass/trunk/lib/iostream/mm.cc	(revision 48562)
+++ /grass/trunk/lib/iostream/mm.cc	(revision 50130)
@@ -275,5 +275,5 @@
  
 /* ************************************************************ */
-void* operator new[] (size_t sz) {
+void* operator new[] (size_t sz) throw(std::bad_alloc) {
   void *p;
   
@@ -326,5 +326,5 @@
  
 /* ************************************************************ */
-void* operator new (size_t sz) {
+void* operator new (size_t sz) throw(std::bad_alloc) {
   void *p;
   
@@ -378,5 +378,5 @@
 
 /* ---------------------------------------------------------------------- */
-void operator delete (void *ptr)  {
+void operator delete (void *ptr) throw() {
   size_t sz;
   void *p;
@@ -418,5 +418,5 @@
 
 /* ---------------------------------------------------------------------- */
-void operator delete[] (void *ptr) {
+void operator delete[] (void *ptr) throw() {
   size_t sz;
   void *p;
Index: /grass/trunk/include/iostream/mm.h
===================================================================
--- /grass/trunk/include/iostream/mm.h	(revision 32746)
+++ /grass/trunk/include/iostream/mm.h	(revision 50130)
@@ -129,8 +129,8 @@
 
   friend class mm_register_init;
-  friend void * operator new(size_t);
-  friend void * operator new[](size_t);
-  friend void operator delete(void *);
-  friend void operator delete[](void *);
+  friend void * operator new(size_t) throw(std::bad_alloc);
+  friend void * operator new[](size_t) throw(std::bad_alloc);
+  friend void operator delete(void *) throw();
+  friend void operator delete[](void *) throw();
 };