Home > Back-end >  How to deal with the failure of the new situation
How to deal with the failure of the new situation

Time:04-23

Searched next project code found that many people today are determine whether NULL actually so I use for many years may be turned from C always feel not accustomed to catch exceptions code style is not a don't know if you have this feeling

CodePudding user response:

Saw the now use open source libraries, also did not catch exceptions, direct use

CodePudding user response:

T * pT=new (STD: : nothrow) T (... );

CodePudding user response:

T * pT=new (STD: : nothrow) T (... );
If (nullptr==pT)
{
}
  • Related