Fix deprecated dynamic exception specification warnings.
This commit is contained in:
parent
e71a76a1e2
commit
4ea18196c8
|
|
@ -108,7 +108,7 @@ void vhdl_element::print() const
|
|||
// Trap allocations of vhdl_element subclasses.
|
||||
// This records the pointer allocated in a static field of vhdl_element
|
||||
// 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
|
||||
void* ptr = ::operator new(size);
|
||||
|
|
@ -171,4 +171,3 @@ int vhdl_element::free_all_objects()
|
|||
|
||||
return freed;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ class vhdl_element {
|
|||
public:
|
||||
virtual ~vhdl_element() {}
|
||||
|
||||
void* operator new(size_t size) throw (std::bad_alloc);
|
||||
void* operator new(size_t size);
|
||||
void operator delete(void* ptr);
|
||||
|
||||
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);
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue