Static Analysis Problem Type Reference
Nonstandard form of operator new.
Nonstandard form of operator new is detected in the source code. This means that the definition of operator new doesn't match any of the three standard forms of operator new:
void* operator new(std::size_t) throw (std::bad_alloc)
void* operator new(std::size_t, const std::nothrow_t&) throw ()
void* operator new(std::size_t, void*) throw ()
|
ID |
Code Location |
Description |
|---|---|---|
|
1 |
Definition |
Definition of operator new |
struct my_no_throw_t {};
void* operator new(size_t, my_no_throw_t) throw () // Nonstandard form of operator new
{
return 0;
}