--- ./c++/libp++/pxx_heap_allocator.cc~ 2021-12-07 13:41:44.500000000 +0000 +++ ./c++/libp++/pxx_heap_allocator.cc 2021-12-07 16:23:02.740000000 +0000 @@ -55,7 +55,7 @@ HeapAllocator::HeapAllocator ( (lists + get_order(current_size))->put(p); } -HeapAllocator::~HeapAllocator () throw (SysError) +HeapAllocator::~HeapAllocator () {} void* HeapAllocator::allocate (size_t _size) --- ./c++/libp++/pxx_heap_allocator.hh~ 2021-12-07 13:41:44.499000000 +0000 +++ ./c++/libp++/pxx_heap_allocator.hh 2021-12-07 16:22:45.408000000 +0000 @@ -110,7 +110,7 @@ public: ) ; // // Destructor - ~HeapAllocator () throw (SysError); + ~HeapAllocator () ; // // Allocate memory block of _size bytes void* allocate (size_t _size) ; --- ./c++/libp++/pxx_heap.cc~ 2021-12-07 13:41:44.532000000 +0000 +++ ./c++/libp++/pxx_heap.cc 2021-12-07 16:21:59.992000000 +0000 @@ -40,7 +40,7 @@ Heap::Heap ( size_t const _max_size /* = 0 */, // Maximum size, not limited by default void* const _start /* = null */, int _fd /* = -1 */ -) throw (SysError) : +) : start_addr (_start), fd (_fd) { @@ -82,7 +82,7 @@ Heap::Heap ( #endif // WINDOWS } -Heap::~Heap () throw (SysError) +Heap::~Heap () { #ifndef WINDOWS #ifdef USE_MREMAP @@ -96,7 +96,7 @@ Heap::~Heap () throw (SysError) #endif // WINDOWS } -void Heap::expand (unsigned _order /* = 1 */) throw (SysError) +void Heap::expand (unsigned _order /* = 1 */) { size_t new_size = current_size << _order; if ((max_size != 0) && ((new_size > max_size) || (new_size == 0))) --- ./c++/libp++/pxx_heap.hh~ 2021-12-07 13:41:44.531000000 +0000 +++ ./c++/libp++/pxx_heap.hh 2021-12-07 16:20:42.925000000 +0000 @@ -65,13 +65,13 @@ public: size_t const _max_size = 0, // Maximum size, not limited by default void* const _start = null, int _fd = -1 - ) throw (SysError) ; + ) ; // // Destructor - ~Heap () throw (SysError) ; + ~Heap () ; // // Expand a heap - void expand (unsigned _order = 1) throw (SysError) ; + void expand (unsigned _order = 1) ; // // Get heap start address inline void* get_start_addr () const ; --- ./c++/libp++/pxx_malloc_allocator.ih~ 2021-12-07 13:41:44.527000000 +0000 +++ ./c++/libp++/pxx_malloc_allocator.ih 2021-12-07 16:16:36.546000000 +0000 @@ -39,7 +39,6 @@ inline MallocAllocator::~MallocAllocator // // Allocate memory block of _size bytes inline void* MallocAllocator::allocate (size_t _size) - throw (SysError) { void* p = malloc(_size); if (p != null) return p; @@ -56,7 +55,6 @@ inline void MallocAllocator::deallocate // // Resize memory block at _ptr to _size bytes inline void* MallocAllocator::reallocate (void* _ptr, size_t _size) - throw (SysError) { void* p = realloc(_ptr, _size); if (p != null) return p; --- ./c++/libp++/pxx_malloc_allocator.hh~ 2021-12-07 13:41:44.528000000 +0000 +++ ./c++/libp++/pxx_malloc_allocator.hh 2021-12-07 16:15:51.721000000 +0000 @@ -47,13 +47,13 @@ public: inline ~MallocAllocator () ; // // Allocate memory block of _size bytes - inline void* allocate (size_t _size) throw (SysError) ; + inline void* allocate (size_t _size) ; // // Free memory block at _ptr inline void deallocate (void* _ptr) ; // // Resize memory block at _ptr to _size bytes - inline void* reallocate (void* _ptr, size_t _size) throw (SysError) ; + inline void* reallocate (void* _ptr, size_t _size) ; // // Returns (if possible) a real size (probably larger then given) // of memory block to be allocated --- ./c++/libp++/pxx_allocator.hh~ 2021-12-07 13:41:44.502000000 +0000 +++ ./c++/libp++/pxx_allocator.hh 2021-12-07 16:13:08.360000000 +0000 @@ -62,7 +62,7 @@ public: inline Allocator (unsigned _features = 0) ; // // Virtual destructor - virtual inline ~Allocator () throw (SysError); + virtual inline ~Allocator (); // // Allocate memory block of _size bytes virtual void* allocate (size_t _size) = 0 ; --- ./c++/libp++/pxx_allocator.ih~ 2021-12-07 13:41:44.501000000 +0000 +++ ./c++/libp++/pxx_allocator.ih 2021-12-07 16:12:44.319000000 +0000 @@ -11,7 +11,7 @@ inline Allocator::Allocator (unsigned _f features (_features) {} -inline Allocator::~Allocator () throw (SysError) +inline Allocator::~Allocator () { if (set_as_default) default_allocator_destroyed = true; }