Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 347462 Details for
Bug 466628
sci-geosciences/grass-6.4.2 - mm.cc:259:32: error: declaration of ‘void* operator new [](size_t)’ has a different exception specifier
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Debian's backported patch (untested)
iostream_cpp470 (text/plain), 3.15 KB, created by
Victor Mataré
on 2013-05-05 19:37:39 UTC
(
hide
)
Description:
Debian's backported patch (untested)
Filename:
MIME Type:
Creator:
Victor Mataré
Created:
2013-05-05 19:37:39 UTC
Size:
3.15 KB
patch
obsolete
>Index: grass/lib/iostream/mm.cc >=================================================================== >--- grass.orig/lib/iostream/mm.cc (revision 48704) >+++ grass/lib/iostream/mm.cc (revision 51638) >@@ -254,11 +254,11 @@ > } > > > > /* ************************************************************ */ >-void* operator new[] (size_t sz) { >+void* operator new[] (size_t sz) throw(std::bad_alloc) { > void *p; > > MM_DEBUG cout << "new: sz=" << sz << ", register " > << sz+SIZE_SPACE << "B ,"; > >@@ -305,11 +305,11 @@ > } > > > > /* ************************************************************ */ >-void* operator new (size_t sz) { >+void* operator new (size_t sz) throw(std::bad_alloc) { > void *p; > > MM_DEBUG cout << "new: sz=" << sz << ", register " > << sz+SIZE_SPACE << "B ,"; > >@@ -357,11 +357,11 @@ > > > > > /* ---------------------------------------------------------------------- */ >-void operator delete (void *ptr) { >+void operator delete (void *ptr) throw() { > size_t sz; > void *p; > > MM_DEBUG cout << "delete: ptr=" << ptr << ","; > >@@ -397,11 +397,11 @@ > > > > > /* ---------------------------------------------------------------------- */ >-void operator delete[] (void *ptr) { >+void operator delete[] (void *ptr) throw() { > size_t sz; > void *p; > > MM_DEBUG cout << "delete[]: ptr=" << ptr << ","; > >Index: grass/include/iostream/mm.h >=================================================================== >--- grass.orig/include/iostream/mm.h (revision 32629) >+++ grass/include/iostream/mm.h (revision 51638) >@@ -108,14 +108,14 @@ > int space_overhead (); > > void print(); > > 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(); > }; > > > > >Index: grass/include/iostream/minmaxheap.h >=================================================================== >--- grass.orig/include/iostream/minmaxheap.h (revision 41531) >+++ grass/include/iostream/minmaxheap.h (revision 51638) >@@ -742,11 +742,11 @@ > HeapIndex MinMaxHeap<T>::fill(T* arr, HeapIndex n) { > HeapIndex i; > //heap must be empty > assert(this->size()==0); > for (i = 0; !full() && i<n; i++) { >- insert(arr[i]); >+ this->insert(arr[i]); > } > if (i < n) { > assert(i == this->maxsize); > return n - i; > } else { >@@ -775,17 +775,17 @@ > > assert(this->maxsize > 0); > > if(old) { > HeapIndex n = this->size(); >- this->A = allocateHeap(this->maxsize); /* allocate a new array */ >+ this->A = this->allocateHeap(this->maxsize); /* allocate a new array */ > /* copy over the old values */ > assert(this->maxsize > n); > for(HeapIndex i=0; i<=n; i++) { /* why extra value? -RW */ > this->A[i] = old[i]; > } >- freeHeap(old); /* free up old storage */ >+ this->freeHeap(old); /* free up old storage */ > } > > } > >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 466628
:
346162
| 347462 |
349420
|
398314