Fix deprecated dynamic exception specification warnings.

This commit is contained in:
Martin Whitaker 2018-10-06 21:02:41 +01:00
parent e71a76a1e2
commit 4ea18196c8
2 changed files with 2 additions and 4 deletions

View File

@ -108,7 +108,7 @@ void vhdl_element::print() const
// Trap allocations of vhdl_element subclasses. // Trap allocations of vhdl_element subclasses.
// This records the pointer allocated in a static field of vhdl_element // This records the pointer allocated in a static field of vhdl_element
// so we can delete it just before the code generator exits. // so we can delete it just before the code generator exits.
void* vhdl_element::operator new(size_t size) throw (bad_alloc) void* vhdl_element::operator new(size_t size)
{ {
// Let the default new handle the allocation // Let the default new handle the allocation
void* ptr = ::operator new(size); void* ptr = ::operator new(size);
@ -171,4 +171,3 @@ int vhdl_element::free_all_objects()
return freed; return freed;
} }

View File

@ -46,7 +46,7 @@ class vhdl_element {
public: public:
virtual ~vhdl_element() {} virtual ~vhdl_element() {}
void* operator new(size_t size) throw (std::bad_alloc); void* operator new(size_t size);
void operator delete(void* ptr); void operator delete(void* ptr);
virtual void emit(std::ostream &of, int level=0) const = 0; virtual void emit(std::ostream &of, int level=0) const = 0;
@ -74,4 +74,3 @@ std::string nl_string(int level);
void blank_line(std::ostream &of, int level); void blank_line(std::ostream &of, int level);
#endif #endif