diff options
author | Tim King <taking@cs.nyu.edu> | 2018-01-03 22:01:42 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-03 22:01:42 -0800 |
commit | a73f9d55155356b90089b00e1a7cc49107a4c587 (patch) | |
tree | ce583b9afb8eaf57974b3ecbf9ea671287fe873e /src/context/context_mm.h | |
parent | 0ef293cad1df1f54122a2eb4dd56b3b71ba6714e (diff) |
Removing throw specifiers from context/. (#1473)
Diffstat (limited to 'src/context/context_mm.h')
-rw-r--r-- | src/context/context_mm.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/context/context_mm.h b/src/context/context_mm.h index 8125fbd14..b7e5ec119 100644 --- a/src/context/context_mm.h +++ b/src/context/context_mm.h @@ -209,15 +209,19 @@ public: typedef ContextMemoryAllocator<U> other; }; - ContextMemoryAllocator(ContextMemoryManager* mm) throw() : d_mm(mm) {} + ContextMemoryAllocator(ContextMemoryManager* mm) : d_mm(mm) {} template <class U> - ContextMemoryAllocator(const ContextMemoryAllocator<U>& alloc) throw() : d_mm(alloc.getCMM()) {} + ContextMemoryAllocator(const ContextMemoryAllocator<U>& alloc) + : d_mm(alloc.getCMM()) + { + } ~ContextMemoryAllocator() {} ContextMemoryManager* getCMM() const { return d_mm; } T* address(T& v) const { return &v; } T const* address(T const& v) const { return &v; } - size_t max_size() const throw() { + size_t max_size() const + { return ContextMemoryManager::getMaxAllocationSize() / sizeof(T); } T* allocate(size_t n, const void* = 0) const { |